mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-16 03:38:30 +12:00
nn_fp: Full rework of friend service
This commit is contained in:
parent
13a50a915e
commit
0d71885c88
37 changed files with 2862 additions and 1991 deletions
|
@ -724,7 +724,7 @@ uint32 RPLLoader_MakePPCCallable(void(*ppcCallableExport)(PPCInterpreter_t* hCPU
|
|||
if (it != g_map_callableExports.end())
|
||||
return it->second;
|
||||
// get HLE function index
|
||||
sint32 functionIndex = PPCInterpreter_registerHLECall(ppcCallableExport);
|
||||
sint32 functionIndex = PPCInterpreter_registerHLECall(ppcCallableExport, fmt::format("PPCCallback{:x}", (uintptr_t)ppcCallableExport));
|
||||
MPTR codeAddr = memory_getVirtualOffsetFromPointer(RPLLoader_AllocateTrampolineCodeSpace(4));
|
||||
uint32 opcode = (1 << 26) | functionIndex;
|
||||
memory_write<uint32>(codeAddr, opcode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue