summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-10-28 00:09:59 +0000
committerDarkvater <Darkvater@openttd.org>2005-10-28 00:09:59 +0000
commit71fb375f8cf82522650d3ec7599b098de3fbd2ce (patch)
treebe85af0818bf0f725cf2730bda5a90f75c799da6 /unix.c
parenteac803845ecf3a9bda2a1b3a443748f5bf83ced5 (diff)
downloadopenttd-71fb375f8cf82522650d3ec7599b098de3fbd2ce.tar.xz
(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index 3fb95569f..c9dcee80b 100644
--- a/unix.c
+++ b/unix.c
@@ -311,6 +311,10 @@ char *FiosBrowseTo(const FiosItem *item)
strcat(path, item->name);
break;
+ case FIOS_TYPE_DIRECT:
+ sprintf(path, "%s\\", item->name);
+ break;
+
case FIOS_TYPE_FILE:
case FIOS_TYPE_OLDFILE:
case FIOS_TYPE_SCENARIO: