mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
add define for Windows
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
@@ -93,7 +93,11 @@ bool CFilesystemLoader::createResource(const std::string & requestedFilename, bo
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user