Permalink
Browse files

A bit of cleanup.

make_dir() does both the PHYSFS_mkdir() and strcpy().
  • Loading branch information...
1 parent 3a56299 commit 37616320bdfd7863e2f230342bc0be2cb5629d99 @cybersphinx cybersphinx committed Feb 15, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main.cpp
View
@@ -1084,12 +1084,11 @@ int main(int argc, char *argv[])
/*** Initialize directory structure ***/
make_dir(ScreenDumpPath, "screenshots", 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("logs"); // a place to hold our netplay, mingw crash reports & WZ logs
make_dir(MultiPlayersPath, "multiplay", NULL);
make_dir(MultiPlayersPath, "multiplay", "players");
- sstrcpy(MultiCustomMapsPath, "maps");
if (!customDebugfile)
{

0 comments on commit 3761632

Please sign in to comment.