fix compile error by split some classes into CKStructs.hpp. ready for CKBitmapData

This commit is contained in:
2023-09-07 22:10:42 +08:00
parent 54a3dd7776
commit 138e47cbdc
9 changed files with 126 additions and 78 deletions

View File

@ -49,7 +49,7 @@ namespace LibCmo::CK2::MgrImpls {
}
bool CKPathManager::AddPath(CKSTRING u8path) {
if (u8path == nullptr) return;
if (u8path == nullptr) return false;
std::filesystem::path newpath;
EncodingHelper::U8PathToStdPath(newpath, u8path);
if (std::filesystem::is_directory(newpath)) {
@ -86,7 +86,7 @@ namespace LibCmo::CK2::MgrImpls {
// test in temp folder
auto tempfile = m_TempFolder / filepath;
if (std::filesystem::is_regular_file(tempfile)) {
EncodingHelper::StdPathToU8Path(u8_filename, combinedpath);
EncodingHelper::StdPathToU8Path(u8_filename, tempfile);
return true;
}