summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 4bc475857..d2b3c7fc2 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -237,15 +237,16 @@ static void FioFreeHandle()
* Open a slotted file.
* @param slot Index to assign.
* @param filename Name of the file at the disk.
- */
-void FioOpenFile(int slot, const char *filename)
+ * @param subdir The sub directory to search this file in.
+ */
+void FioOpenFile(int slot, const char *filename, Subdirectory subdir)
{
FILE *f;
#if defined(LIMITED_FDS)
FioFreeHandle();
#endif /* LIMITED_FDS */
- f = FioFOpenFile(filename);
+ f = FioFOpenFile(filename, "rb", subdir);
if (f == NULL) usererror("Cannot open file '%s'", filename);
uint32 pos = ftell(f);