summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index a2db03896..54a7ef932 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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;
}