Changeset - r1750:f519500462ed
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-05-02 21:56:01
darkvater@openttd.org
(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
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -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++) {
0 comments (0 inline, 0 general)