diff --git a/tools/apps/hgjson/CDlgLang.cpp b/tools/apps/hgjson/CDlgLang.cpp index bb5cdc9..4aa4936 100644 --- a/tools/apps/hgjson/CDlgLang.cpp +++ b/tools/apps/hgjson/CDlgLang.cpp @@ -319,12 +319,13 @@ namespace sdk_util *ptr = coding_util::crc_32((const void*)(ptr + 1), cont.length() - 8); file_util::PATHFILE file = { 0 }; + tmp = 0; if (file_util::browser_file(owner, &file, L"Language pack(*.pak)\0\0", false)) { - file_util::save_2_file(cont.c_str(), cont.length(), file.path); + tmp = file_util::save_2_file(cont.c_str(), cont.length(), file.path); } - return 0; + return tmp; } bool parse_pak_digest(uint8_t* data, int* id) @@ -932,7 +933,8 @@ void CDlgLang::OnBnClickedButtonSave() return; } - sdk_util::save_2_lang_pak(m_hWnd, items, cp); + if (sdk_util::save_2_lang_pak(m_hWnd, items, cp)) + ::MessageBoxW(m_hWnd, L"\u8BF7\u68C0\u67E5\u8DEF\u5F84\u53CA\u6743\u9650\u662F\u5426\u6B63\u5E38?", L"\u4FDD\u5B58\u5931\u8D25", MB_OK); } diff --git a/tools/solution/Release/hgjson.exe b/tools/solution/Release/hgjson.exe index e51eedd..3922d88 100644 Binary files a/tools/solution/Release/hgjson.exe and b/tools/solution/Release/hgjson.exe differ