mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 12:27:43 +00:00
Update fmtlib
This commit is contained in:
@@ -268,7 +268,7 @@ CBooModel::ModelInstance* CBooModel::PushNewModelInstance(int sharedLayoutBuf) {
|
||||
}
|
||||
|
||||
if (m_instances.size() >= 512) {
|
||||
Log.report(logvisor::Fatal, fmt("Model buffer overflow"));
|
||||
Log.report(logvisor::Fatal, FMT_STRING("Model buffer overflow"));
|
||||
}
|
||||
|
||||
ModelInstance& newInst = m_instances.emplace_back();
|
||||
@@ -640,7 +640,7 @@ static EExtendedShader ResolveExtendedShader(const MaterialSet::Material& data,
|
||||
|
||||
void CBooModel::DrawSurface(const CBooSurface& surf, const CModelFlags& flags) const {
|
||||
// if (m_uniUpdateCount == 0)
|
||||
// Log.report(logvisor::Fatal, fmt("UpdateUniformData() not called"));
|
||||
// Log.report(logvisor::Fatal, FMT_STRING("UpdateUniformData() not called"));
|
||||
if (m_uniUpdateCount == 0 || m_uniUpdateCount > m_instances.size())
|
||||
return;
|
||||
const ModelInstance& inst = m_instances[m_uniUpdateCount - 1];
|
||||
@@ -1175,7 +1175,7 @@ CModel::CModel(std::unique_ptr<u8[]>&& in, u32 /* dataLen */, IObjectStore* stor
|
||||
u32 version = hecl::SBig(*reinterpret_cast<u32*>(data.get() + 0x4));
|
||||
m_flags = hecl::SBig(*reinterpret_cast<u32*>(data.get() + 0x8));
|
||||
if (version != 0x10002)
|
||||
Log.report(logvisor::Fatal, fmt("invalid CMDL for loading with boo"));
|
||||
Log.report(logvisor::Fatal, FMT_STRING("invalid CMDL for loading with boo"));
|
||||
|
||||
u32 secCount = hecl::SBig(*reinterpret_cast<u32*>(data.get() + 0x24));
|
||||
u32 matSetCount = hecl::SBig(*reinterpret_cast<u32*>(data.get() + 0x28));
|
||||
|
||||
Reference in New Issue
Block a user