2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:47:42 +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

@@ -25,7 +25,7 @@ CTextParser* g_TextParser = nullptr;
std::shared_ptr<CGuiWidget> CGuiSys::CreateWidgetInGame(FourCC type, CInputStream& in, CGuiFrame* frame,
CSimplePool* sp) {
switch (type) {
switch (type.toUint32()) {
case SBIG('BWIG'):
return CGuiWidget::Create(frame, in, sp);
case SBIG('HWIG'):
@@ -53,9 +53,8 @@ std::shared_ptr<CGuiWidget> CGuiSys::CreateWidgetInGame(FourCC type, CInputStrea
case SBIG('ENRG'):
return CAuiEnergyBarT01::Create(frame, in, sp);
default:
break;
return {};
}
return {};
}
CGuiSys::CGuiSys(IFactory& resFactory, CSimplePool& resStore, EUsageMode mode)