mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-26 16:42:56 +00:00
Flush the error log before exit (ryubing/ryujinx!163)
See merge request ryubing/ryujinx!163
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user