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 /misc_gui.c | |
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 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 89ee4f216..b1b9f7f37 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1486,7 +1486,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e) if (!(_saveload_mode == SLD_SAVE_GAME || _saveload_mode == SLD_SAVE_SCENARIO)) break; if (IsWindowWidgetLowered(w, 11)) { /* Delete button clicked */ - if (!FiosDelete(OTTD2FS(WP(w,querystr_d).text.buf))) { + if (!FiosDelete(WP(w,querystr_d).text.buf)) { ShowErrorMessage(INVALID_STRING_ID, STR_4008_UNABLE_TO_DELETE_FILE, 0, 0); } else { BuildFileList(); |