1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

add define for Windows

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
kdmcser
2025-04-19 23:48:21 +08:00
committed by GitHub
parent e308b2149a
commit 8d25748dba

View File

@@ -93,7 +93,11 @@ bool CFilesystemLoader::createResource(const std::string & requestedFilename, bo
} }
filename = filename.substr(mountPoint.size()); filename = filename.substr(mountPoint.size());
std::wstring filePath = boost::locale::conv::utf_to_utf<wchar_t>(filename); #ifdef VCMI_WINDOWS
boost::filesystem::path filePath(boost::locale::conv::utf_to_utf<wchar_t>(filename));
#else
boost::filesystem::path filePath(filename.string());
#endif
if (!update) if (!update)
{ {