mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +00:00
fix a silly mistake that caused configs not to be written
This commit is contained in:
parent
c7390e4d53
commit
75f3f27a22
1 changed files with 5 additions and 4 deletions
|
@ -442,15 +442,16 @@ COM_WriteBuffers (const char *filename, int count, ...)
|
|||
void
|
||||
COM_CreatePath (const char *path)
|
||||
{
|
||||
const char *ofs;
|
||||
char *ofs;
|
||||
char e_path[MAX_OSPATH];
|
||||
|
||||
Qexpand_squiggle (path, e_path);
|
||||
path = e_path;
|
||||
|
||||
for (ofs = path + 1; *ofs; ofs++) {
|
||||
for (ofs = e_path + 1; *ofs; ofs++) {
|
||||
if (*ofs == '/') { // create the directory
|
||||
Sys_mkdir (va ("%.*s", ofs - path, path));
|
||||
*ofs = 0;
|
||||
Sys_mkdir (e_path);
|
||||
*ofs = '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue