summaryrefslogtreecommitdiff
path: root/win32.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
commitf56199311284fe48c88d4a55a1794c1f485b151e (patch)
treebe85af0818bf0f725cf2730bda5a90f75c799da6 /win32.c
parent1cc537970656e16cb361be4d6570cb76f8404df4 (diff)
downloadopenttd-f56199311284fe48c88d4a55a1794c1f485b151e.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 'win32.c')
-rw-r--r--win32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 19a11877f..8ef1caa81 100644
--- a/win32.c
+++ b/win32.c
@@ -917,6 +917,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:
@@ -1177,7 +1181,7 @@ void DeterminePaths(void)
_path.personal_dir = _path.game_data_dir = cfg = malloc(MAX_PATH);
GetCurrentDirectory(MAX_PATH - 1, cfg);
-
+ cfg[0] = toupper(cfg[0]);
s = strchr(cfg, 0);
if (s[-1] != '\\') strcpy(s, "\\");