2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:07:43 +00:00

Massive fmtlib refactor

This commit is contained in:
Jack Andersen
2019-07-19 18:27:21 -10:00
parent e38a3ece89
commit 7a3da1f7a6
228 changed files with 2071 additions and 2116 deletions

View File

@@ -34,7 +34,7 @@ bool CParticleElectricDataFactory::CreateELSM(CElectricDescription* desc, CInput
FourCC clsId = CPF::GetClassID(in);
while (clsId != SBIG('_END')) {
switch (clsId) {
switch (clsId.toUint32()) {
case SBIG('LIFE'):
desc->x0_LIFE = CPF::GetIntElement(in);
break;
@@ -102,8 +102,7 @@ bool CParticleElectricDataFactory::CreateELSM(CElectricDescription* desc, CInput
desc->x70_ZERY = CPF::GetBool(in);
break;
default: {
uint32_t clsName = clsId.toUint32();
Log.report(logvisor::Fatal, "Unknown ELSM class %.4s @%" PRIi64, &clsName, in.position());
Log.report(logvisor::Fatal, fmt("Unknown ELSM class {} @{}"), clsId, in.position());
return false;
}
}