mirror of https://github.com/OpenTTD/OpenTTD
(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
parent
5847abc9f8
commit
5f576e12aa
|
@ -350,6 +350,12 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir,
|
|||
}
|
||||
}
|
||||
|
||||
/* Sometimes a full path is given. To support
|
||||
* the 'subdirectory' must be 'removed'. */
|
||||
if (f == NULL && subdir != NO_DIRECTORY) {
|
||||
f = FioFOpenFile(filename, mode, NO_DIRECTORY, filesize);
|
||||
}
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue