From 92ed3dbddbb44f2771b4106a794e975e4a835ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 26 Apr 2021 18:23:16 +0200 Subject: ksys/res: Implement register/unregisterFactory --- src/KingSystem/Resource/resSystem.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/KingSystem/Resource/resSystem.cpp') 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); } -- cgit v1.2.3