mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-19 11:39:35 +01:00
parent
7aa4e7fc58
commit
9238f508eb
@ -543,8 +543,12 @@ static bool ConRemove(std::span<std::string_view> argv)
|
|||||||
_console_file_list_savegame.ValidateFileList();
|
_console_file_list_savegame.ValidateFileList();
|
||||||
const FiosItem *item = _console_file_list_savegame.FindItem(file);
|
const FiosItem *item = _console_file_list_savegame.FindItem(file);
|
||||||
if (item != nullptr) {
|
if (item != nullptr) {
|
||||||
if (!FioRemove(item->name)) {
|
if (item->type.abstract == FT_SAVEGAME) {
|
||||||
IConsolePrint(CC_ERROR, "Failed to delete '{}'.", item->name);
|
if (!FioRemove(item->name)) {
|
||||||
|
IConsolePrint(CC_ERROR, "Failed to delete '{}'.", item->name);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
IConsolePrint(CC_ERROR, "'{}' is not a savegame.", file);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
IConsolePrint(CC_ERROR, "'{}' could not be found.", file);
|
IConsolePrint(CC_ERROR, "'{}' could not be found.", file);
|
||||||
|
Loading…
Reference in New Issue
Block a user