From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.Client/PS3/PS3Extras/TLSStorage.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Minecraft.Client/PS3/PS3Extras/TLSStorage.h (limited to 'Minecraft.Client/PS3/PS3Extras/TLSStorage.h') diff --git a/Minecraft.Client/PS3/PS3Extras/TLSStorage.h b/Minecraft.Client/PS3/PS3Extras/TLSStorage.h new file mode 100644 index 00000000..e959edae --- /dev/null +++ b/Minecraft.Client/PS3/PS3Extras/TLSStorage.h @@ -0,0 +1,25 @@ + + +#pragma once + + +#pragma once + +class TLSStoragePS3 +{ + static TLSStoragePS3* m_pInstance; + + static const int sc_maxSlots = 64; + static BOOL m_activeList[sc_maxSlots]; + static __thread LPVOID m_values[sc_maxSlots]; + +public: + TLSStoragePS3(); + + // Retrieve singleton instance. + static TLSStoragePS3* Instance(); + int Alloc(); + BOOL Free(DWORD _index); + BOOL SetValue(DWORD _index, LPVOID _val); + LPVOID GetValue(DWORD _index); +}; \ No newline at end of file -- cgit v1.2.3