mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 00:10:26 -06:00
20 lines
355 B
C
20 lines
355 B
C
#pragma once
|
|
|
|
struct CodeCache
|
|
{
|
|
char* bucket{};
|
|
|
|
CodeCache();
|
|
~CodeCache();
|
|
|
|
void Init();
|
|
void Insert(uint32_t guest, const void* host);
|
|
|
|
void* Find(uint32_t guest) const;
|
|
};
|
|
|
|
SWA_API PPCFunc* KeFindHostFunction(uint32_t guest);
|
|
SWA_API void KeInsertHostFunction(uint32_t guest, PPCFunc* function);
|
|
|
|
extern CodeCache g_codeCache;
|