Skip to content

Commit

Permalink
CafeSystem: Init recompiler after game profile has been loaded (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 authored Mar 11, 2024
1 parent e143506 commit 788da3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cafe/CafeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,10 @@ namespace CafeSystem
return r;
// setup memory space and PPC recompiler
SetupMemorySpace();
PPCRecompiler_init();
r = SetupExecutable(); // load RPX
if (r != STATUS_CODE::SUCCESS)
return r;
PPCRecompiler_init();
InitVirtualMlcStorage();
return STATUS_CODE::SUCCESS;
}
Expand Down Expand Up @@ -821,11 +821,11 @@ namespace CafeSystem
uint32 h = generateHashFromRawRPXData(execData->data(), execData->size());
sForegroundTitleId = 0xFFFFFFFF00000000ULL | (uint64)h;
cemuLog_log(LogType::Force, "Generated placeholder TitleId: {:016x}", sForegroundTitleId);
// setup memory space and ppc recompiler
// setup memory space
SetupMemorySpace();
PPCRecompiler_init();
// load executable
SetupExecutable();
PPCRecompiler_init();
InitVirtualMlcStorage();
return STATUS_CODE::SUCCESS;
}
Expand Down

0 comments on commit 788da3c

Please sign in to comment.