Fix a crash in Ryujinx.Headless.SDL2 when loading an app ()

Caused by the recent application loader changes.
This commit is contained in:
Mary 2023-04-16 16:50:30 +02:00 committed by GitHub
parent 79d1c190db
commit 40e87c634e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,8 +589,6 @@ namespace Ryujinx.Headless.SDL2
_emulationContext = InitializeEmulationContext(window, renderer, options); _emulationContext = InitializeEmulationContext(window, renderer, options);
SetupProgressHandler();
SystemVersion firmwareVersion = _contentManager.GetCurrentFirmwareVersion(); SystemVersion firmwareVersion = _contentManager.GetCurrentFirmwareVersion();
Logger.Notice.Print(LogClass.Application, $"Using Firmware Version: {firmwareVersion?.VersionString}"); Logger.Notice.Print(LogClass.Application, $"Using Firmware Version: {firmwareVersion?.VersionString}");
@ -693,6 +691,8 @@ namespace Ryujinx.Headless.SDL2
return false; return false;
} }
SetupProgressHandler();
Translator.IsReadyForTranslation.Reset(); Translator.IsReadyForTranslation.Reset();
ExecutionEntrypoint(); ExecutionEntrypoint();