Since mkdir() isn't recursive we need to create .yq2/$moddir.

This commit is contained in:
Yamagi Burmeister 2017-08-31 17:26:32 +02:00
parent 503ab368a2
commit aa5f63e0dc

View file

@ -1389,6 +1389,9 @@ void FS_BuildGenericSearchPath(void) {
// distinguish generic and specialized directories.
fs_baseSearchPaths = fs_searchPaths;
// We need to create the game directory.
Sys_Mkdir(fs_gamedir);
// We need to create the screenshot directory since the
// render dll doesn't link the filesystem stuff.
Com_sprintf(path, sizeof(path), "%s/scrnshot", fs_gamedir);
@ -1493,6 +1496,9 @@ FS_BuildGameSpecificSearchPath(char *dir)
}
}
// Create the game directory.
Sys_Mkdir(fs_gamedir);
// We need to create the screenshot directory since the
// render dll doesn't link the filesystem stuff.
Com_sprintf(path, sizeof(path), "%s/scrnshot", fs_gamedir);