Restructured gamefiles, locale data loading refactoring, docker build fixes

This commit is contained in:
2024-05-25 20:00:26 +03:00
parent 27108d629a
commit 48ee253534
1046 changed files with 84 additions and 12989 deletions

View File

@ -1,7 +1,8 @@
#ifndef __LOCALE_SERVCICE__
#define __LOCALE_SERVCICE__
#pragma once
bool LocaleService_Init(const std::string& c_rstServiceName);
extern std::string g_stLanguage;
bool LocaleService_Init(const std::string& language);
void LocaleService_LoadLocaleStringFile();
void LocaleService_LoadEmpireTextConvertTables();
void LocaleService_TransferDefaultSetting();
@ -9,66 +10,8 @@ const std::string& LocaleService_GetBasePath();
const std::string& LocaleService_GetMapPath();
const std::string& LocaleService_GetQuestPath();
enum eLocalization
struct LanguageSettings
{
LC_NOSET = 0,
LC_YMIR,
LC_JAPAN,
LC_ENGLISH,
LC_HONGKONG,
LC_NEWCIBN,
LC_GERMANY,
LC_KOREA,
LC_FRANCE,
LC_ITALY,
LC_SPAIN,
LC_UK,
LC_TURKEY,
LC_POLAND,
LC_PORTUGAL,
LC_CANADA,
LC_BRAZIL,
LC_GREEK,
LC_RUSSIA,
LC_DENMARK,
LC_BULGARIA,
LC_CROATIA,
LC_MEXICO,
LC_ARABIA,
LC_CZECH,
LC_ROMANIA,
LC_HUNGARY,
LC_NETHERLANDS,
LC_SINGAPORE,
LC_VIETNAM,
LC_THAILAND,
LC_USA,
LC_WE_KOREA, ///< World Edition version for korea
LC_TAIWAN,
LC_MAX_VALUE
std::string mysqlCharsetName;
bool useLocaleString = true;
};
eLocalization LC_GetLocalType();
bool LC_IsLocale( const eLocalization t );
bool LC_IsYMIR();
bool LC_IsJapan();
bool LC_IsEnglish();
bool LC_IsHongKong();
bool LC_IsNewCIBN();
bool LC_IsGermany();
bool LC_IsKorea();
bool LC_IsEurope();
bool LC_IsCanada();
bool LC_IsBrazil();
bool LC_IsSingapore();
bool LC_IsVietnam();
bool LC_IsThailand();
bool LC_IsWE_Korea();
bool LC_IsTaiwan();
bool LC_IsWorldEdition();
#endif