mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-15 10:36:58 +00:00
Flush the error log before exit (ryubing/ryujinx!163)
See merge request ryubing/ryujinx!163
This commit is contained in:
parent
ceec9617ef
commit
51584a083b
5 changed files with 61 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue