summaryrefslogtreecommitdiff
path: root/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fileio.c')
-rw-r--r--fileio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fileio.c b/fileio.c
index a7d141a8b..25bda0b29 100644
--- a/fileio.c
+++ b/fileio.c
@@ -165,6 +165,10 @@ void FioOpenFile(int slot, const char *filename)
*s = tolower(*s);
f = fopen(buf, "rb");
}
+
+ if (f == NULL)
+ sprintf(buf, "%s%s", _path.data_dir, filename); //makes it print the primary datadir path instead of the secundary one
+
#endif
}
#endif