Jelajahi Sumber

Allow changing default directories in Windows

George King 8 bulan lalu
induk
melakukan
37ec51527c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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"
 
 	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();