浏览代码

Allow changing default directories in Windows

George King 8 月之前
父节点
当前提交
37ec51527c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/VCMIDirs.cpp

+ 1 - 1
lib/VCMIDirs.cpp

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