修复从zip资源文件加载资源找不到多语言文件的问题

如果 GetData 参数为 m_pStrResourcePath + language + L"\\gdstrings.ini"
则得到的语言路径为:"resources/themes/default/lang/zh_CN/gdstrings.ini"
实则应该为:"resources/lang/zh_CN/gdstrings.ini"
This commit is contained in:
Quan Zhuo 2019-07-30 15:24:10 +08:00
parent babf0c2237
commit d71b4e94d6

View File

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