void * TMalloc(TSIZE a_uiSize, Toshi::TMemory::MemBlock *a_pMemBlock, const TCHAR *a_szFileName, TINT a_iLineNum)
Allocates memory from a specific memory block.
void TFree(void *a_pMem)
Frees previously allocated memory.
Localization system for the Toshi engine.
TWCHAR * T2LocalisedString
#define TSTATICCAST(POINTERTYPE, VALUE)
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
static TUINT32 GetHeaderSize(TUINT32 count)
static TUINT32 GetSymbolTableSize(TUINT32 count)
TINT GetNumStrings() const
virtual const TCHAR * GetLanguageFilename(Lang lang)=0
T2LocalisedString GetString(TINT a_iNumString)
LocaleStrings * m_StringTable
static void * TRBAllocator(TTRB::AllocType alloctype, size_t size, short unk, size_t unk2, void *userData)
T2Locale(const T2Locale &)=delete
static void TRBDeallocator(TTRB::AllocType alloctype, void *ptr, short unk, size_t unk2, void *userData)
void SetLanguage(Lang langid)