diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-28 14:42:31 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-28 14:42:31 +0000 |
commit | 4e7109113750d383fae9086638c17646f6df74b5 (patch) | |
tree | 4cbabbc256d401dc659eee0bfc25178f517648c3 /fios.h | |
parent | 9253387001aafa9bd996a2e2906732373b20a43a (diff) | |
download | openttd-4e7109113750d383fae9086638c17646f6df74b5.tar.xz |
(svn r7274) -Codechange [utf8]: Add input/output unicode support. This actually only changes win32
since it uses UTF16 for file access. To keep os-specific code to a minimum, OpenTTD
uses UTF8 internally everywhere, converting to OS-type when needed (save/load/screenshot/etc.)
Diffstat (limited to 'fios.h')
-rw-r--r-- | fios.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,7 +57,7 @@ int CDECL compare_FiosItems(const void *a, const void *b); typedef struct DIR DIR; typedef struct dirent { // XXX - only d_name implemented - char *d_name; /* name of found file */ + wchar_t *d_name; /* name of found file */ /* little hack which will point to parent DIR struct which will * save us a call to GetFileAttributes if we want information * about the file (for example in function fio_bla */ @@ -70,7 +70,7 @@ struct DIR { * note: having only one global instance is not possible because * multiple independent opendir/readdir sequences must be supported. */ dirent ent; - WIN32_FIND_DATA fd; + WIN32_FIND_DATAW fd; /* since opendir calls FindFirstFile, we need a means of telling the * first call to readdir that we already have a file. * that's the case iff this is true */ |