ksys/phys: Add MemSystem::initSystemData

This commit is contained in:
Léo Lam
2022-01-07 01:30:35 +01:00
parent 53c5d03420
commit b4bbaf141f
7 changed files with 133 additions and 53 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ template <typename T>
class EntryFactory : public EntryFactoryBase {
SEAD_RTTI_OVERRIDE(EntryFactory<T>, EntryFactoryBase)
public:
using EntryFactoryBase::EntryFactoryBase;
explicit EntryFactory(f32 size_multiplier = 1.0, u32 size_constant = 0)
: EntryFactoryBase(size_multiplier, size_constant) {}
u32 getResourceSize() const override { return sizeof(T); }
u32 getLoadDataAlignment() const override { return T::cLoadDataAlignment; }