diff options
| author | Bassel Shmali <bass3l@live.com> | 2026-03-02 21:55:44 +0100 |
|---|---|---|
| committer | Bassel Alshmali <bass3l@live.com> | 2026-03-02 22:01:41 +0100 |
| commit | 67192cea925441501c4990104e6d3e9240092c11 (patch) | |
| tree | aa8d23f25b5ead45b480e8bd2fcded16907d149e | |
| parent | 98331e4908695878cb3208924e897c3a26f61261 (diff) | |
expose RegisterFactory
| -rw-r--r-- | src/Companion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Companion.h b/src/Companion.h index 954f444..5abe720 100644 --- a/src/Companion.h +++ b/src/Companion.h @@ -199,6 +199,7 @@ public: std::optional<std::tuple<std::string, YAML::Node>> RegisterAsset(const std::string& name, YAML::Node& node); std::optional<YAML::Node> AddAsset(YAML::Node asset); + void RegisterFactory(const std::string& type, const std::shared_ptr<BaseFactory>& factory); private: TorchConfig gConfig; YAML::Node gModdingConfig; @@ -251,7 +252,6 @@ private: void ParseHash(); void ParseModdingConfig(); void ParseCurrentFileConfig(YAML::Node node, std::atomic<size_t>& assetCount); - void RegisterFactory(const std::string& type, const std::shared_ptr<BaseFactory>& factory); void ExtractNode(YAML::Node& node, std::string& name, BinaryWrapper* binary); void ProcessTables(YAML::Node& rom); void LoadYAMLRecursively(const std::string &dirPath, std::vector<YAML::Node> &result, bool skipRoot); |
