the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1
2
3#pragma once
4
5
6#pragma once
7
8class TLSStoragePS3
9{
10 static TLSStoragePS3* m_pInstance;
11
12 static const int sc_maxSlots = 64;
13 static BOOL m_activeList[sc_maxSlots];
14 static __thread LPVOID m_values[sc_maxSlots];
15
16public:
17 TLSStoragePS3();
18
19 // Retrieve singleton instance.
20 static TLSStoragePS3* Instance();
21 int Alloc();
22 BOOL Free(DWORD _index);
23 BOOL SetValue(DWORD _index, LPVOID _val);
24 LPVOID GetValue(DWORD _index);
25};