mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
fix a nasty dir creation bug. there's probably a few more such spots :/
This commit is contained in:
parent
26c6b9618f
commit
631d5f470c
1 changed files with 1 additions and 4 deletions
|
@ -355,10 +355,7 @@ void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr)
|
||||||
snprintf (fullpath, sizeof(fullpath), "%s/%s", com_gamedir, cache);
|
snprintf (fullpath, sizeof(fullpath), "%s/%s", com_gamedir, cache);
|
||||||
f = Qopen (fullpath, "wb");
|
f = Qopen (fullpath, "wb");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
char gldir[MAX_OSPATH];
|
COM_CreatePath (fullpath);
|
||||||
|
|
||||||
snprintf (gldir, sizeof(gldir), "%s/glquake", com_gamedir);
|
|
||||||
Sys_mkdir (gldir);
|
|
||||||
f = Qopen (fullpath, "wb");
|
f = Qopen (fullpath, "wb");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue