mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
This commit is contained in:
parent
586d2da917
commit
eb0be0322a
@ -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
Block a user