Changeset - r26771:70722547775c
[Not reviewed]
master
0 1 0
Rubidium - 17 months ago 2023-01-15 09:53:32
rubidium@openttd.org
Fix #9865: removing files with the console always failed
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/console_cmds.cpp
Show inline comments
 
@@ -458,8 +458,8 @@ DEF_CONSOLE_CMD(ConRemove)
 
	_console_file_list.ValidateFileList();
 
	const FiosItem *item = _console_file_list.FindItem(file);
 
	if (item != nullptr) {
 
		if (!FiosDelete(item->name)) {
 
			IConsolePrint(CC_ERROR, "Failed to delete '{}'.", file);
 
		if (unlink(item->name) != 0) {
 
			IConsolePrint(CC_ERROR, "Failed to delete '{}'.", item->name);
 
		}
 
	} else {
 
		IConsolePrint(CC_ERROR, "'{}' could not be found.", file);
0 comments (0 inline, 0 general)