diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-26 18:23:16 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-04-26 18:25:25 +0200 |
| commit | 92ed3dbddbb44f2771b4106a794e975e4a835ea0 (patch) | |
| tree | d171a4ccc6cdb905002b5b8b825487493a8dc644 /src/KingSystem/Resource/resSystem.cpp | |
| parent | f8d110ce28bc791bdcad481fae8b00c718f42fb4 (diff) | |
ksys/res: Implement register/unregisterFactory
Diffstat (limited to 'src/KingSystem/Resource/resSystem.cpp')
| -rw-r--r-- | src/KingSystem/Resource/resSystem.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/KingSystem/Resource/resSystem.cpp b/src/KingSystem/Resource/resSystem.cpp index f4238ad1..c40b9df9 100644 --- a/src/KingSystem/Resource/resSystem.cpp +++ b/src/KingSystem/Resource/resSystem.cpp @@ -1,4 +1,5 @@ #include "KingSystem/Resource/resSystem.h" +#include "KingSystem/Resource/resEntryFactory.h" #include "KingSystem/Resource/resResourceMgrTask.h" namespace ksys::res { @@ -7,6 +8,14 @@ bool stubbedLogFunction() { return true; } +void registerEntryFactory(EntryFactoryBase* factory, const sead::SafeString& name) { + ResourceMgrTask::instance()->registerFactory(factory, name); +} + +void unregisterEntryFactory(EntryFactoryBase* factory) { + ResourceMgrTask::instance()->unregisterFactory(factory); +} + bool isHostPath(const sead::SafeString& path) { return ResourceMgrTask::instance()->isHostPath(path); } |
