mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r11945) -Fix: FileExists() failed for non latin paths (win32)
This commit is contained in:
parent
22973fc2ce
commit
1d219ad7b6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user