Flush the error log before exit (ryubing/ryujinx!163)

See merge request ryubing/ryujinx!163
This commit is contained in:
Coxxs 2025-10-13 17:40:15 -05:00 committed by GreemDev
parent ceec9617ef
commit 51584a083b
5 changed files with 61 additions and 1 deletions

View file

@ -1095,6 +1095,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
Logger.Error?.Print(LogClass.Cpu, $"Invalid memory access at virtual address 0x{va:X16}.");
Logger.Flush();
return false;
}
@ -1103,6 +1105,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
KernelStatic.GetCurrentThread().PrintGuestStackTrace();
KernelStatic.GetCurrentThread()?.PrintGuestRegisterPrintout();
Logger.Flush();
throw new UndefinedInstructionException(address, opCode);
}