HLE: Make HLE table access thread-safe

Previous code could sometimes resize the vector while a read access was happening
This commit is contained in:
Exzap 2025-06-22 20:56:47 +02:00
parent 522b5ef260
commit 5a4731f919
2 changed files with 32 additions and 24 deletions

View file

@ -230,9 +230,9 @@ static inline float flushDenormalToZero(float f)
// HLE interface
typedef void(*HLECALL)(PPCInterpreter_t* hCPU);
using HLECALL = void(*)(PPCInterpreter_t*);
using HLEIDX = sint32;
typedef sint32 HLEIDX;
HLEIDX PPCInterpreter_registerHLECall(HLECALL hleCall, std::string hleName);
HLECALL PPCInterpreter_getHLECall(HLEIDX funcIndex);