Use fmt::format for LOGMESSAGE

The format string can be checked at compile time. It will be easier to
transition to `std::format`.
This commit is contained in:
phosit
2026-09-03 15:33:30 +02:00
parent b2496aa9ca
commit 43cb3100b6
26 changed files with 108 additions and 90 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ private:
{
for (const VfsPath& p : pathnames)
{
LOGMESSAGE("Loading map generator script '%s'", p.string8());
LOGMESSAGE("Loading map generator script '{}'", p.string8());
if (!m_ScriptInterface.LoadGlobalScriptFile(p))
{
@@ -394,7 +394,7 @@ Script::StructuredClone RunMapGenerationScript(const StopToken stopToken, std::a
}
// Load RMS
LOGMESSAGE("Loading RMS '%s'", script.string8());
LOGMESSAGE("Loading RMS '{}'", script.string8());
auto compileResult = scriptInterface.GetModuleLoader().LoadModule(rq, script);
scriptInterface.GetContext().RunJobs();
auto& future = *compileResult.begin();