mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 11:32:31 +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
@@ -65,7 +65,7 @@ CSkeletonAnimDef* CSkeletonAnimManager::GetAnimation(const VfsPath& pathname)
|
||||
VfsPath psaFilename = m_ColladaManager.GetLoadablePath(name, CColladaManager::PSA);
|
||||
|
||||
if (psaFilename.empty())
|
||||
LOGERROR("Could not load animation '%s'", pathname.string8());
|
||||
LOGERROR("Could not load animation '{}'", pathname.string8());
|
||||
else
|
||||
try
|
||||
{
|
||||
@@ -73,7 +73,7 @@ CSkeletonAnimDef* CSkeletonAnimManager::GetAnimation(const VfsPath& pathname)
|
||||
}
|
||||
catch (PSERROR_File&)
|
||||
{
|
||||
LOGERROR("Could not load animation '%s'", psaFilename.string8());
|
||||
LOGERROR("Could not load animation '{}'", psaFilename.string8());
|
||||
}
|
||||
|
||||
if (def)
|
||||
@@ -82,7 +82,10 @@ CSkeletonAnimDef* CSkeletonAnimManager::GetAnimation(const VfsPath& pathname)
|
||||
pathname.string8());
|
||||
}
|
||||
else
|
||||
LOGERROR("CSkeletonAnimManager::GetAnimation(%s): Failed loading, marked file as bad", pathname.string8());
|
||||
{
|
||||
LOGERROR("CSkeletonAnimManager::GetAnimation({}): Failed loading, marked file as bad",
|
||||
pathname.string8());
|
||||
}
|
||||
|
||||
// Add to map, NULL if failed to load - we won't try loading it again
|
||||
return m_Animations.insert_or_assign(name, std::move(def)).first->second.get();
|
||||
|
||||
Reference in new issue
Block a user