From: Ryan Hanson Date: Fri, 14 May 2010 21:46:07 +0000 (-0500) Subject: Made a couple more filepaths use ConvertFileName(), so it works on Windows compiled... X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=5c6cc5547529706b683e0e5f948c56ababda2b18;p=lugaru.git Made a couple more filepaths use ConvertFileName(), so it works on Windows compiled with MinGW --- 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);