添加语言包文件保存失败提示

This commit is contained in:
gb 2023-02-08 08:40:23 +08:00
parent 05a87cffeb
commit 0db9af80e5
2 changed files with 5 additions and 3 deletions

View File

@ -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);
}

Binary file not shown.