mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 13:40:59 +00:00
Since mkdir() isn't recursive we need to create .yq2/$moddir.
This commit is contained in:
parent
503ab368a2
commit
aa5f63e0dc
1 changed files with 6 additions and 0 deletions
|
@ -1389,6 +1389,9 @@ void FS_BuildGenericSearchPath(void) {
|
||||||
// distinguish generic and specialized directories.
|
// distinguish generic and specialized directories.
|
||||||
fs_baseSearchPaths = fs_searchPaths;
|
fs_baseSearchPaths = fs_searchPaths;
|
||||||
|
|
||||||
|
// We need to create the game directory.
|
||||||
|
Sys_Mkdir(fs_gamedir);
|
||||||
|
|
||||||
// We need to create the screenshot directory since the
|
// We need to create the screenshot directory since the
|
||||||
// render dll doesn't link the filesystem stuff.
|
// render dll doesn't link the filesystem stuff.
|
||||||
Com_sprintf(path, sizeof(path), "%s/scrnshot", fs_gamedir);
|
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
|
// We need to create the screenshot directory since the
|
||||||
// render dll doesn't link the filesystem stuff.
|
// render dll doesn't link the filesystem stuff.
|
||||||
Com_sprintf(path, sizeof(path), "%s/scrnshot", fs_gamedir);
|
Com_sprintf(path, sizeof(path), "%s/scrnshot", fs_gamedir);
|
||||||
|
|
Loading…
Reference in a new issue