mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 00:50:53 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user