Files
daoge b3feddfef3 feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict

* feat: TU19 (Dec 2014) Features & Content (#32)

* December 2014 files

* Working release build

* Fix compilation issues

* Add sound to Windows64Media

* Add DLC content and force Tutorial DLC

* Revert "Add DLC content and force Tutorial DLC"

This reverts commit 97a4399472.

* Disable broken light packing

* Disable breakpoint during DLC texture map load

Allows DLC loading but the DLC textures are still broken

* Fix post build not working

* ...

* fix vs2022 build

* fix cmake build

---------

Co-authored-by: Loki <lokirautio@gmail.com>
2026-03-03 03:04:10 +08:00

81 lines
1.5 KiB
C++

#pragma once
using namespace std;
#if defined(__PS3__) || defined(__ORBIS__) || defined __PSVITA__
#define LOCALE_COUNT 21
#elif defined _XBOX_ONE
#define LOCALE_COUNT 19
#else
#define LOCALE_COUNT 11
#endif
class StringTable
{
private:
bool isStatic;
unordered_map<wstring, wstring> m_stringsMap;
vector<wstring> m_stringsVec;
byteArray src;
public:
// enum eLocale
// {
// eLocale_Default=0,
// eLocale_American,
// eLocale_Japanese,
// eLocale_German,
// eLocale_French,
// eLocale_Spanish,
// eLocale_Italian,
// eLocale_Korean,
// eLocale_TradChinese,
// eLocale_Portuguese,
// eLocale_Brazilian,
// #if defined(__PS3__) || defined(__ORBIS__) || defined __PSVITA__
// eLocale_Russian,
// eLocale_Dutch,
// eLocale_Finish,
// eLocale_Swedish,
// eLocale_Danish,
// eLocale_Norwegian,
// eLocale_Polish,
// eLocale_Turkish,
// eLocale_LatinAmericanSpanish,
// eLocale_Greek,
// #elif defined _XBOX_ONE || defined _XBOX
// eLocale_British,
// eLocale_Irish,
// eLocale_Australian,
// eLocale_NewZealand,
// eLocale_Canadian,
// eLocale_Mexican,
// eLocale_FrenchCanadian,
// eLocale_Austrian,
// #endif
// };
StringTable(void);
StringTable(PBYTE pbData, DWORD dwSize);
~StringTable(void);
void ReloadStringTable();
void getData(PBYTE *ppbData, UINT *pdwSize);
LPCWSTR getString(const wstring &id);
LPCWSTR getString(int id);
//static LPCWSTR m_wchLocaleCode[LOCALE_COUNT];
private:
//wstring getLangId(DWORD dwLanguage=0);
void ProcessStringTableData(void);
};