固定资源路径

This commit is contained in:
Cussrro 2024-12-19 11:10:30 +08:00
parent 3bdbe8234a
commit cfe180284b
5 changed files with 88 additions and 72 deletions

View file

@ -40,11 +40,15 @@ void CDnMainFrame::InitializeLocalize()
bool CDnMainFrame::PreInitialize()
{
// Path 설정
// TODO(Cussrro): 固定资源路径
std::string path = ".\\GameRes";
g_Config.szResourcePath = path;
// Path 설정
std::string szResource = g_Config.szResourcePath + "\\Resource";
std::string szMapData = g_Config.szResourcePath + "\\MapData";
// 국가별 셋팅
// 국가별 셋팅
std::string szNationStr;
if( szNationStr.empty() && !g_Config.szResourceNation.empty() ) szNationStr = g_Config.szResourceNation;
if( !szNationStr.empty() ) {
@ -80,7 +84,7 @@ bool CDnMainFrame::PreInitialize()
strNationFileName.clear();
strNationFileName = "uistring";
if (i != 0) //0번은 디폴트
if (i != 0) //0번은 디폴트
strNationFileName.append(MultiLanguage::NationString[i]);
strNationFileName.append(".xml");
@ -92,7 +96,7 @@ bool CDnMainFrame::PreInitialize()
#ifdef PRE_ADD_UISTRING_DIVIDE
strNationItemFileName = "uistring_item";
if (i != 0) //0번은 디폴트
if (i != 0) //0번은 디폴트
strNationItemFileName.append(MultiLanguage::NationString[i]);
strNationItemFileName.append(".xml");