diff options
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/Thunk.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Common/Src/Thunk.h | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/Source/Core/Common/Src/Thunk.cpp b/Source/Core/Common/Src/Thunk.cpp index aad55cb3c4..1792df3e77 100644 --- a/Source/Core/Common/Src/Thunk.cpp +++ b/Source/Core/Common/Src/Thunk.cpp @@ -23,8 +23,6 @@ #include "ABI.h" #include "Thunk.h" -ThunkManager thunks; - #define THUNK_ARENA_SIZE 1024*1024*1 namespace diff --git a/Source/Core/Common/Src/Thunk.h b/Source/Core/Common/Src/Thunk.h index 44cfc0c4cb..ac40babe4c 100644 --- a/Source/Core/Common/Src/Thunk.h +++ b/Source/Core/Common/Src/Thunk.h @@ -43,13 +43,17 @@ class ThunkManager : public Gen::XCodeBlock const u8 *load_regs; public: + ThunkManager() { + Init(); + } + ~ThunkManager() { + Shutdown(); + } + void *ProtectFunction(void *function, int num_params); +private: void Init(); - void Reset(); void Shutdown(); - - void *ProtectFunction(void *function, int num_params); + void Reset(); }; -extern ThunkManager thunks; - #endif // _THUNK_H_ |
