From b3203a0859df28631fb8268bfe2d119292291e4b Mon Sep 17 00:00:00 2001 From: xerox Date: Sat, 3 Oct 2020 03:35:04 -0700 Subject: [PATCH] fixed launch.bat... going to need to push a new release --- Voyager-1/Voyager-1 (2004-1709)/UefiMain.c | 6 +++--- launch.bat | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c b/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c index 29d9918..509f930 100644 --- a/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c +++ b/Voyager-1/Voyager-1 (2004-1709)/UefiMain.c @@ -38,7 +38,7 @@ EFI_STATUS EFIAPI UefiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable EFI_DEVICE_PATH* BootMgfwPath = GetBootMgfwPath(); if (EFI_ERROR((Result = gBS->LoadImage(TRUE, ImageHandle, BootMgfwPath, NULL, NULL, &BootMgfwHandle)))) { - Print(L"failed to load bootmgfw.efi...\n"); + Print(L"failed to load bootmgfw.efi... reason -> %r\n", Result); gBS->Stall(5 * 1000000); return EFI_ABORTED; } @@ -50,9 +50,9 @@ EFI_STATUS EFIAPI UefiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable return Result; } - if (EFI_ERROR(gBS->StartImage(BootMgfwHandle, NULL, NULL))) + if (EFI_ERROR((Result = gBS->StartImage(BootMgfwHandle, NULL, NULL)))) { - Print(L"Failed to start bootmgfw.efi...\n"); + Print(L"Failed to start bootmgfw.efi... reason -> %r\n", Result); gBS->Stall(5 * 1000000); return EFI_ABORTED; } diff --git a/launch.bat b/launch.bat index f7cb2ef..b1e4795 100644 --- a/launch.bat +++ b/launch.bat @@ -2,6 +2,7 @@ net session >nul 2>&1 if %errorLevel% == 0 ( mountvol X: /S + attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\ xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\