Use fmt::format for LOGERROR

The format string can be checked at compile time. It will be easier to
transition to `std::format`.
This commit is contained in:
phosit committed 2026-10-05 20:29:26 +02:00
1 parent ba158aa3ff
commit 369a7e7e5d
115 files changed
+631 -454

No files matched your search

+2 -2
View File
@@ -203,7 +203,7 @@ static Input::Reaction MainInputHandler(const SDL_Event& ev)
installer.Install(std::string(dropped_filedir), g_ScriptContext, true);
SDL_free(dropped_filedir);
if (installer.GetInstalledMods().empty())
LOGERROR("Failed to install mod %s", dropped_filedir);
LOGERROR("Failed to install mod {}", dropped_filedir);
else
{
LOGMESSAGE("Installed mod {}", installer.GetInstalledMods().front());
@@ -683,7 +683,7 @@ static void RunGameOrAtlas(const std::span<const char* const> argv)
{
CModInstaller::ModInstallationResult result = installer.Install(modPath, g_ScriptContext, true);
if (result != CModInstaller::ModInstallationResult::SUCCESS)
LOGERROR("Failed to install '%s'", modPath.string8().c_str());
LOGERROR("Failed to install '{}'", modPath.string8());
}
installedMods = installer.GetInstalledMods();