diff options
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 93ec66174..b34939f32 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -19,6 +19,8 @@ #ifdef WIN32 # include <tchar.h> # include <io.h> +# define access _taccess +# define unlink _tunlink #else # include <unistd.h> #endif /* WIN32 */ @@ -202,7 +204,7 @@ bool FileExists(const char *filename) CloseHandle(hand); return 0; #else - return access(filename, 0) == 0; + return access(OTTD2FS(filename), 0) == 0; #endif } |