summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 21:33:01 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 15:25:31 +0200
commiteb6cdadc4dad9de62abbd31c410050ae150935b1 (patch)
tree9abf6cf90bec474fcf226c15d6f85dbbbed04551 /src/music
parentd9c1d18f2bde32fe615fbe6ad088fbce1e2b82bf (diff)
downloadopenttd-eb6cdadc4dad9de62abbd31c410050ae150935b1.tar.xz
Codechange: replace IConsolePrintF with IConsolePrint and fmt formatting
Also make some strings more consistent with the rest of the console strings.
Diffstat (limited to 'src/music')
-rw-r--r--src/music/midifile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp
index dcd2cefd8..4240f4d8d 100644
--- a/src/music/midifile.cpp
+++ b/src/music/midifile.cpp
@@ -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.");