Merge pull request #95 from quanzhuo/development

修复从zip资源文件加载资源找不到多语言文件的问题
This commit is contained in:
Dylan 2019-07-31 10:35:32 +08:00 committed by GitHub
commit e7cd6125da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ void GlobalManager::Startup(const std::wstring& strResourcePath, const CreateCon
// 加载多语言文件,如果使用了资源压缩包则从内存中加载语言文件 // 加载多语言文件,如果使用了资源压缩包则从内存中加载语言文件
if (g_hzip) { if (g_hzip) {
HGLOBAL hGlobal = GetData(m_pStrResourcePath + language + L"\\gdstrings.ini"); HGLOBAL hGlobal = GetData(strResourcePath + language + L"\\gdstrings.ini");
if (hGlobal) { if (hGlobal) {
ui::MutiLanSupport::GetInstance()->LoadStringTable(hGlobal); ui::MutiLanSupport::GetInstance()->LoadStringTable(hGlobal);
GlobalFree(hGlobal); GlobalFree(hGlobal);