修复从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:
parent
babf0c2237
commit
d71b4e94d6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user