mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-27 21:24:37 +00:00
TU24
This commit is contained in:
@@ -18,33 +18,63 @@ private:
|
||||
unordered_map<wstring, wstring> m_stringsMap;
|
||||
vector<wstring> m_stringsVec;
|
||||
|
||||
vector<pair<wstring, int>> m_langSizeMap;
|
||||
wstring currentLanguage;
|
||||
|
||||
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 Reset(); // TU30
|
||||
|
||||
void write(DataOutputStream* dos); // TU30
|
||||
|
||||
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);
|
||||
|
||||
// From TU30
|
||||
void ReadAllFromStream(DataInputStream* dis);
|
||||
bool FindLanguage(wstring& outLangId, int64_t& outBytesToSkip, int& outDataSize);
|
||||
void ReadLanguageFromStream(DataInputStream* dis, int dataSize);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user