coreinit: Handle non-existing modules in OSDynLoad_Acquire

Fixes Togabito crashing on boot

coreinit: Handle non-existing modules in OSDynLoad_Acquire
This commit is contained in:
Exzap 2023-09-09 14:33:31 +02:00
parent c168cf536a
commit f04c7575d7
7 changed files with 102 additions and 75 deletions

View file

@ -165,7 +165,7 @@ void LoadMainExecutable()
{
// RPX
RPLLoader_AddDependency(_pathToExecutable.c_str());
applicationRPX = rpl_loadFromMem(rpxData, rpxSize, (char*)_pathToExecutable.c_str());
applicationRPX = RPLLoader_LoadFromMemory(rpxData, rpxSize, (char*)_pathToExecutable.c_str());
if (!applicationRPX)
{
wxMessageBox(_("Failed to run this title because the executable is damaged"));