From 3a99acdf77c961f6fcc47970ceef8bf43a4477cd Mon Sep 17 00:00:00 2001 From: zhaozicai <2831906503@qq.com> Date: Thu, 18 Jul 2024 21:45:57 +0800 Subject: [PATCH] Update BootPatchHelper.cs --- UotanToolbox/Common/BootPatchHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UotanToolbox/Common/BootPatchHelper.cs b/UotanToolbox/Common/BootPatchHelper.cs index 2b7e0fd1..b7c6c6f1 100644 --- a/UotanToolbox/Common/BootPatchHelper.cs +++ b/UotanToolbox/Common/BootPatchHelper.cs @@ -212,7 +212,8 @@ public static async Task ramdisk_detect() Directory.CreateDirectory(workpath); } (string outputcpio, Global.cpio_exitcode) = await CallExternalProgram.MagiskBoot($"cpio \"{cpio_file}\" extract", workpath); - string init_info = await CallExternalProgram.File($"\"{CheckInitPath(ramdisk_path)}\""); + string initPath = await CheckInitPath(ramdisk_path); + string init_info = await CallExternalProgram.File($"\"{initPath}\""); (BootInfo.userful, BootInfo.arch) = ArchDetect(init_info); } return true;