Merge pull request #95 from quanzhuo/development
修复从zip资源文件加载资源找不到多语言文件的问题
This commit is contained in:
commit
e7cd6125da
@ -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