From 7d1e3086b8dfb7ffdf75478e159ce90543a1ee6e Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 22 Jan 2008 15:47:40 +0000 Subject: [PATCH] (svn r11945) -Fix: FileExists() failed for non latin paths (win32) --- src/fios.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fios.cpp b/src/fios.cpp index 93ec661744..b34939f32a 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -19,6 +19,8 @@ #ifdef WIN32 # include # include +# define access _taccess +# define unlink _tunlink #else # include #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 }