From ef9d3374fe084fec8c1241d30eb6ac51bf583b72 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Mon, 10 Jun 2024 21:30:25 -0600 Subject: [PATCH] CI stuff --- source/g_wolf.cc | 4 ++-- source/lib_util.cc | 2 ++ source/m_dialog.cc | 2 +- source/m_manage.cc | 4 ++-- source/m_options.cc | 4 ++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/source/g_wolf.cc b/source/g_wolf.cc index 417ee40f1..5d95040ff 100644 --- a/source/g_wolf.cc +++ b/source/g_wolf.cc @@ -430,7 +430,7 @@ bool wolf_game_interface_c::Start(const char *ext) switch (result) { case -1: - LogPrintf(_("Error choosing directory:\n")); + LogPrintf("%s\n", _("Error choosing directory:")); LogPrintf(" %s\n", chooser.errmsg()); break; @@ -446,7 +446,7 @@ bool wolf_game_interface_c::Start(const char *ext) if (dir_name.empty()) { - LogPrintf(_("Empty directory provided???:\n")); + LogPrintf("%s\n",_("Empty directory provided???")); dir_name = Resolve_DefaultOutputPath(); } diff --git a/source/lib_util.cc b/source/lib_util.cc index 72a3fe2e5..312a713b8 100644 --- a/source/lib_util.cc +++ b/source/lib_util.cc @@ -31,6 +31,8 @@ #ifdef __MINGW32__ #include #endif + +#include #include #include "grapheme.h" diff --git a/source/m_dialog.cc b/source/m_dialog.cc index 97b121fe0..8ddd7d513 100644 --- a/source/m_dialog.cc +++ b/source/m_dialog.cc @@ -278,7 +278,7 @@ std::string DLG_OutputFilename(const char *ext, const char *preset) switch (result) { case -1: - LogPrintf(_("Error choosing output file:\n")); + LogPrintf("%s\n", _("Error choosing output file:")); LogPrintf(" %s\n", chooser.errmsg()); DLG_ShowError(_("Unable to create the file:\n\n%s"), chooser.errmsg()); diff --git a/source/m_manage.cc b/source/m_manage.cc index d907e48cf..141c69b70 100644 --- a/source/m_manage.cc +++ b/source/m_manage.cc @@ -423,7 +423,7 @@ class UI_Manage_Config : public Fl_Double_Window switch (chooser.show()) { case -1: - LogPrintf(_("Error choosing save file:\n")); + LogPrintf("%s\n", _("Error choosing save file:")); LogPrintf(" %s\n", chooser.errmsg()); DLG_ShowError(_("Unable to save the file:\n\n%s"), chooser.errmsg()); @@ -489,7 +489,7 @@ class UI_Manage_Config : public Fl_Double_Window switch (chooser.show()) { case -1: - LogPrintf(_("Error choosing load file:\n")); + LogPrintf("%s\n", _("Error choosing load file:")); LogPrintf(" %s\n", chooser.errmsg()); DLG_ShowError(_("Unable to load the file:\n\n%s"), chooser.errmsg()); diff --git a/source/m_options.cc b/source/m_options.cc index 413e549c4..9892e9134 100644 --- a/source/m_options.cc +++ b/source/m_options.cc @@ -587,7 +587,7 @@ class UI_OptionsWin : public Fl_Window switch (result) { case -1: - LogPrintf(_("Error choosing directory:\n")); + LogPrintf("%s\n", _("Error choosing directory:")); LogPrintf(" %s\n", chooser.errmsg()); return; @@ -603,7 +603,7 @@ class UI_OptionsWin : public Fl_Window if (dir_name.empty()) { - LogPrintf(_("Empty default directory provided???:\n")); + LogPrintf("%s\n", _("Empty default directory provided???")); return; }