diff --git a/prboom2/src/SDL/i_system.c b/prboom2/src/SDL/i_system.c index 26578a25a..c1a86e84e 100644 --- a/prboom2/src/SDL/i_system.c +++ b/prboom2/src/SDL/i_system.c @@ -339,7 +339,7 @@ const char *I_ConfigDir(void) #endif } - M_MakeDir(base, true); // Make sure it exists + M_MakeDir(base, false); } return base; diff --git a/prboom2/src/dsda/data_organizer.c b/prboom2/src/dsda/data_organizer.c index 00b095b3a..da319e2c6 100644 --- a/prboom2/src/dsda/data_organizer.c +++ b/prboom2/src/dsda/data_organizer.c @@ -77,7 +77,7 @@ void dsda_InitDataDir(void) { dsda_StringPrintF(&str, "%s/%s", parent_directory, dsda_data_root); dsda_base_data_dir = str.string; - M_MakeDir(dsda_base_data_dir, true); + M_MakeDir(dsda_base_data_dir, false); Z_Free(parent_directory); } @@ -126,7 +126,7 @@ static void dsda_InitWadDataDir(void) { for (i = 0; i < DATA_DIR_LIMIT; ++i) if (dsda_data_dir_strings[i]) { dsda_StringCatF(&str, "/%s", dsda_data_dir_strings[i]); - M_MakeDir(str.string, true); + M_MakeDir(str.string, false); } dsda_wad_data_dir = str.string; diff --git a/prboom2/src/dsda/tranmap.c b/prboom2/src/dsda/tranmap.c index 7e9d0476d..01d607bf9 100644 --- a/prboom2/src/dsda/tranmap.c +++ b/prboom2/src/dsda/tranmap.c @@ -57,7 +57,7 @@ static void dsda_InitTranMapBaseDir(void) { tranmap_base_dir = Z_Malloc(length); snprintf(tranmap_base_dir, length, "%s/tranmaps", data_root); - M_MakeDir(tranmap_base_dir, true); + M_MakeDir(tranmap_base_dir, false); } static void dsda_InitTranMapPaletteDir(void) { @@ -73,7 +73,7 @@ static void dsda_InitTranMapPaletteDir(void) { tranmap_palette_dir = Z_Malloc(length); snprintf(tranmap_palette_dir, length, "%s/%s", tranmap_base_dir, playpal_cksum.string); - M_MakeDir(tranmap_palette_dir, true); + M_MakeDir(tranmap_palette_dir, false); } // diff --git a/prboom2/src/dsda/wad_stats.c b/prboom2/src/dsda/wad_stats.c index 1534c02ac..56c34a4b7 100644 --- a/prboom2/src/dsda/wad_stats.c +++ b/prboom2/src/dsda/wad_stats.c @@ -227,7 +227,10 @@ void dsda_SaveWadStats(void) { file = M_OpenFile(path, "wb"); if (!file) - lprintf(LO_WARN, "dsda_SaveWadStats: Failed to save wad stats file \"%s\".", path); + { + lprintf(LO_WARN, "dsda_SaveWadStats: Failed to save wad stats file \"%s\".\n", path); + return; + } fprintf(file, "%d\n", current_version); fprintf(file, "%d\n", wad_stats.total_kills);