From 5c6cc5547529706b683e0e5f948c56ababda2b18 Mon Sep 17 00:00:00 2001 From: Ryan Hanson Date: Fri, 14 May 2010 16:46:07 -0500 Subject: [PATCH] Made a couple more filepaths use ConvertFileName(), so it works on Windows compiled with MinGW --- Source/GameInitDispose.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index f59c837..45ead6d 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -141,7 +141,7 @@ void Game::Dispose() sprintf (mapname, ":Data:Users"); FILE *tfile; - tfile=fopen( mapname, "wb" ); + tfile=fopen( ConvertFileName(mapname), "wb" ); if (tfile) { fpackf(tfile, "Bi", numaccounts); @@ -1015,7 +1015,7 @@ void Game::InitGame() accountactive=-1; sprintf (mapname, ":Data:Users"); - tfile=fopen( mapname, "rb" ); + tfile=fopen( ConvertFileName(mapname), "rb" ); if(tfile) { funpackf(tfile, "Bi", &numaccounts); -- 2.39.2