summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-02 21:56:01 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-02 21:56:01 +0000
commita7b661d47b126547815fde47b497ab7bf93d3246 (patch)
tree86a6ec75fe6dab93a6c61405049a50ba3ac10dc2 /console_cmds.c
parenta2d701524887abd56adb69f112385a4b538fd0bf (diff)
downloadopenttd-a7b661d47b126547815fde47b497ab7bf93d3246.tar.xz
(svn r2254) - Fix: using 'ls' or 'dir' in the console always shows loadable savegames and does not depend on the whim of the currently open saveload dialog
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 3fd533a22..d4fe3001a 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -223,10 +223,11 @@ DEF_CONSOLE_CMD(ConListFiles)
int i;
if (argc == 0) {
- IConsoleHelp("List all the files in the current dir via console. Usage: 'ls \\ dir'");
+ IConsoleHelp("List all loadable savegames and directories in the current dir via console. Usage: 'ls \\ dir'");
return true;
}
+ _saveload_mode = SLD_LOAD_GAME;
BuildFileList();
for (i = 0; i < _fios_num; i++) {