Skip to content

Commit

Permalink
A bit of cleanup.
Browse files Browse the repository at this point in the history
make_dir() does both the PHYSFS_mkdir() and strcpy().
  • Loading branch information
cybersphinx committed Feb 15, 2011
1 parent 3a56299 commit 3761632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Expand Up @@ -1084,12 +1084,11 @@ int main(int argc, char *argv[])
/*** Initialize directory structure ***/ /*** Initialize directory structure ***/
make_dir(ScreenDumpPath, "screenshots", NULL); make_dir(ScreenDumpPath, "screenshots", NULL);
make_dir(SaveGamePath, "savegame", NULL); make_dir(SaveGamePath, "savegame", NULL);
PHYSFS_mkdir("maps"); // MUST have this to prevent crashes when getting map make_dir(MultiCustomMapsPath, "maps", NULL); // MUST have this to prevent crashes when getting map
PHYSFS_mkdir("music"); PHYSFS_mkdir("music");
PHYSFS_mkdir("logs"); // a place to hold our netplay, mingw crash reports & WZ logs PHYSFS_mkdir("logs"); // a place to hold our netplay, mingw crash reports & WZ logs
make_dir(MultiPlayersPath, "multiplay", NULL); make_dir(MultiPlayersPath, "multiplay", NULL);
make_dir(MultiPlayersPath, "multiplay", "players"); make_dir(MultiPlayersPath, "multiplay", "players");
sstrcpy(MultiCustomMapsPath, "maps");


if (!customDebugfile) if (!customDebugfile)
{ {
Expand Down

0 comments on commit 3761632

Please sign in to comment.