Files
botw/src/KingSystem/Resource/resEntryFactory.cpp
T
Léo Lam 3d371999a4 ksys/res: Implement EntryFactory (base class and template)
Also adds a heap-related function that's used by EntryFactory
(and many other functions)
2020-09-04 22:01:52 +02:00

21 lines
471 B
C++

#include "KingSystem/Resource/resEntryFactory.h"
namespace ksys::res {
static EntryFactory<Resource> sDefaultEntryFactory;
u32 EntryFactoryBase::getResourceSize() const {
KSYS_CHECK_SIZE_NX150(sead::DirectResource, 0x20);
return sizeof(sead::DirectResource);
}
u32 EntryFactoryBase::getLoadDataAlignment() const {
return sizeof(void*);
}
EntryFactory<Resource>& getDefaultResourceFactory() {
return sDefaultEntryFactory;
}
} // namespace ksys::res