]> git.jsancho.org Git - lugaru.git/commitdiff
Made a couple more filepaths use ConvertFileName(), so it works on Windows compiled...
authorRyan Hanson <hansonry@gmail.com>
Fri, 14 May 2010 21:46:07 +0000 (16:46 -0500)
committerRyan Hanson <hansonry@gmail.com>
Fri, 14 May 2010 21:46:07 +0000 (16:46 -0500)
Source/GameInitDispose.cpp

index f59c83757264c022f125e418a6623f9186cfb512..45ead6d28e4bc22fc44f06d05bc22766f4a52f79 100644 (file)
@@ -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);