1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Allow changing default directories in Windows

This commit is contained in:
George King
2025-04-06 22:13:04 +02:00
committed by GitHub
parent e1be9af5e6
commit 37ec51527c

View File

@@ -132,7 +132,7 @@ bool StartBatchCopyDataProgram(
(boost::format("start \"\" /D %1% %2%") % currentPath % (to / exeName)); // Start game in 'currentPath"
const bfs::path bathFilename = to / "_temp.bat";
std::ofstream bathFile(bathFilename.c_str(), std::ofstream::trunc | std::ofstream::out);
bfs::ofstream bathFile(bathFilename, bfs::ofstream::trunc | bfs::ofstream::out);
if (!bathFile.is_open())
return false;
bathFile << (boost::format(base) % exeName % from % (from / "*.*") % to % startGameString.str()).str();