1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

Codechange: replace IConsolePrintF with IConsolePrint and fmt formatting

Also make some strings more consistent with the rest of the console strings.
This commit is contained in:
rubidium42
2021-06-12 21:33:01 +02:00
committed by rubidium42
parent d9c1d18f2b
commit eb6cdadc4d
9 changed files with 97 additions and 120 deletions

View File

@@ -1109,7 +1109,7 @@ std::string MidiFile::GetSMFFile(const MusicSongInfo &song)
static bool CmdDumpSMF(byte argc, char *argv[])
{
if (argc == 0) {
IConsolePrint(CC_WARNING, "Write the current song to a Standard MIDI File. Usage: 'dumpsmf <filename>'");
IConsolePrint(CC_HELP, "Write the current song to a Standard MIDI File. Usage: 'dumpsmf <filename>'.");
return true;
}
if (argc != 2) {
@@ -1127,7 +1127,7 @@ static bool CmdDumpSMF(byte argc, char *argv[])
IConsolePrint(CC_ERROR, "Filename too long.");
return false;
}
IConsolePrintF(CC_INFO, "Dumping MIDI to: %s", fnbuf);
IConsolePrint(CC_INFO, "Dumping MIDI to '{}'.", fnbuf);
if (_midifile_instance->WriteSMF(fnbuf)) {
IConsolePrint(CC_INFO, "File written successfully.");