diff options
author | bjarni <bjarni@openttd.org> | 2005-07-24 20:47:42 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-07-24 20:47:42 +0000 |
commit | cb3c325e5f8bcb09f390ef7a1af0ef0442fe9462 (patch) | |
tree | a76a3caff196b9a4ee538b858977e8393b1f4d44 /fileio.c | |
parent | 238e47cd42c009f2ab1359428788a65a26fafebb (diff) | |
download | openttd-cb3c325e5f8bcb09f390ef7a1af0ef0442fe9462.tar.xz |
(svn r2703) - Feature: [OSX] Added a native alert window to show whatever error() needs to print (Tobin made this, while I fixed some issued in it)
- As a bonus, we now have an objective C file (os/macosx/macos.m) to use the functions Apple made to interact with OS stuff
Diffstat (limited to 'fileio.c')
-rw-r--r-- | fileio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |