mirror of
https://github.com/zeldaret/botw
synced 2026-06-22 16:23:02 -04:00
3d371999a4
Also adds a heap-related function that's used by EntryFactory (and many other functions)
21 lines
471 B
C++
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
|