CafeSystem: Init recompiler after game profile has been loaded (#1115)

This commit is contained in:
goeiecool9999 2024-03-11 01:47:31 +01:00 committed by GitHub
parent e1435066ee
commit 788da3cdf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -779,10 +779,10 @@ namespace CafeSystem
return r; return r;
// setup memory space and PPC recompiler // setup memory space and PPC recompiler
SetupMemorySpace(); SetupMemorySpace();
PPCRecompiler_init();
r = SetupExecutable(); // load RPX r = SetupExecutable(); // load RPX
if (r != STATUS_CODE::SUCCESS) if (r != STATUS_CODE::SUCCESS)
return r; return r;
PPCRecompiler_init();
InitVirtualMlcStorage(); InitVirtualMlcStorage();
return STATUS_CODE::SUCCESS; return STATUS_CODE::SUCCESS;
} }
@ -821,11 +821,11 @@ namespace CafeSystem
uint32 h = generateHashFromRawRPXData(execData->data(), execData->size()); uint32 h = generateHashFromRawRPXData(execData->data(), execData->size());
sForegroundTitleId = 0xFFFFFFFF00000000ULL | (uint64)h; sForegroundTitleId = 0xFFFFFFFF00000000ULL | (uint64)h;
cemuLog_log(LogType::Force, "Generated placeholder TitleId: {:016x}", sForegroundTitleId); cemuLog_log(LogType::Force, "Generated placeholder TitleId: {:016x}", sForegroundTitleId);
// setup memory space and ppc recompiler // setup memory space
SetupMemorySpace(); SetupMemorySpace();
PPCRecompiler_init();
// load executable // load executable
SetupExecutable(); SetupExecutable();
PPCRecompiler_init();
InitVirtualMlcStorage(); InitVirtualMlcStorage();
return STATUS_CODE::SUCCESS; return STATUS_CODE::SUCCESS;
} }