mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-04-21 00:22:15 +00:00
Check if Switch is running before creating minidump
This commit is contained in:
parent
b51999a1ba
commit
55c2ae2b3d
1 changed files with 2 additions and 2 deletions
|
|
@ -382,14 +382,14 @@ namespace Ryujinx.Ava
|
||||||
exceptions.Add(initialException);
|
exceptions.Add(initialException);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTerminating)
|
if (isTerminating && HLE.Switch.Shared is { } device)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Print a short message first just in case it crashes again during minidump creation (should not happen)
|
// Print a short message first just in case it crashes again during minidump creation (should not happen)
|
||||||
Logger.Error?.Print(LogClass.Application, $"Unhandled exception caught: {initialException.GetType().Name}. Creating guest program minidump...");
|
Logger.Error?.Print(LogClass.Application, $"Unhandled exception caught: {initialException.GetType().Name}. Creating guest program minidump...");
|
||||||
|
|
||||||
var minidump = HLE.Switch.Shared?.System?.DebugGetApplicationProcessMinidump();
|
var minidump = device.System?.DebugGetApplicationProcessMinidump();
|
||||||
|
|
||||||
if (minidump == null)
|
if (minidump == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue