Files
Commonwealth-Online-Public/plugin/lib/commonlibf4/include/RE/T/TLS.h
T
2026-05-30 18:33:24 +12:00

20 lines
302 B
C++

#pragma once
#include "REX/W32/NT.h"
namespace RE
{
class TLS
{
public:
[[nodiscard]] static TLS* GetSingleton()
{
return *static_cast<TLS**>(REX::W32::NtCurrentTeb()->threadLocalStoragePointer);
}
// members
std::byte pad000[0x830]; // 000
bool consoleMode; // 830
};
}