mirror of https://github.com/OpenTTD/OpenTTD.git
(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
This commit is contained in:
parent
3b3a2b890f
commit
d26052c7df
|
@ -223,10 +223,11 @@ DEF_CONSOLE_CMD(ConListFiles)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (argc == 0) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_saveload_mode = SLD_LOAD_GAME;
|
||||||
BuildFileList();
|
BuildFileList();
|
||||||
|
|
||||||
for (i = 0; i < _fios_num; i++) {
|
for (i = 0; i < _fios_num; i++) {
|
||||||
|
|
Loading…
Reference in New Issue