mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 13:12:22 +00:00
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:
115 files changed
+631
-454
No files matched your search
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user