summaryrefslogtreecommitdiff
path: root/src/Companion.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-03-28 22:19:27 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-03-28 22:19:27 -0600
commit42d95d50fd6f8d41db71ff7f42d1260df84c1c1d (patch)
tree511fa7ace7500edafb8ea1ab87135faa2c8db376 /src/Companion.h
parenta7d7acdc4219d474597960b55fea06b06e1911ad (diff)
WIP Collision factoryfeature/sm64-collision
Diffstat (limited to 'src/Companion.h')
-rw-r--r--src/Companion.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Companion.h b/src/Companion.h
index 748efbb..7dd9f16 100644
--- a/src/Companion.h
+++ b/src/Companion.h
@@ -97,6 +97,7 @@ public:
GBIVersion GetGBIVersion() const { return this->gConfig.gbi.version; }
GBIMinorVersion GetGBIMinorVersion() const { return this->gConfig.gbi.subversion; }
std::optional<std::string> GetEnumFromValue(const std::string& key, int id);
+ std::optional<uint32_t> GetValueFromEnum(const std::string& key, const std::string& value);
std::optional<std::uint32_t> GetFileOffsetFromSegmentedAddr(uint8_t segment) const;
std::optional<std::tuple<std::string, YAML::Node>> GetNodeByAddr(uint32_t addr);
@@ -137,9 +138,10 @@ private:
std::optional<VRAMEntry> gCurrentVram;
CompressionType gCurrentCompressionType = CompressionType::None;
std::vector<Table> gTables;
+ std::vector<std::string> gDependencies;
+ std::unordered_map<std::string, std::string> gModdedAssetPaths;
std::variant<std::vector<std::string>, std::string> gWriteOrder;
std::unordered_map<std::string, std::shared_ptr<BaseFactory>> gFactories;
- std::unordered_map<std::string, std::string> gModdedAssetPaths;
std::unordered_map<std::string, std::map<std::string, std::vector<WriteEntry>>> gWriteMap;
std::unordered_map<std::string, std::map<std::string, std::pair<YAML::Node, bool>>> gAssetDependencies;
std::unordered_map<std::string, std::unordered_map<uint32_t, std::tuple<std::string, YAML::Node>>> gAddrMap;