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:
@@ -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.");
|
||||
|
Reference in New Issue
Block a user