summaryrefslogtreecommitdiff
path: root/src/Companion.h
diff options
context:
space:
mode:
authorcoco875 <pereira.jannin@gmail.com>2025-08-12 03:43:45 +0200
committerLywx <kiritodev01@gmail.com>2025-12-01 12:39:42 -0600
commitb47ba0a853801be397f69b856f22f9788e2b5f30 (patch)
tree5bc5478c160aa484b39cbe77a1d13d0cb1fdddb7 /src/Companion.h
parent804d46a2df8d54885ce339f868cde6bdce0fff0a (diff)
add manual_segments
Diffstat (limited to 'src/Companion.h')
-rw-r--r--src/Companion.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Companion.h b/src/Companion.h
index 95da2a4..2b6fc09 100644
--- a/src/Companion.h
+++ b/src/Companion.h
@@ -166,7 +166,9 @@ public:
std::optional<std::shared_ptr<BaseFactory>> GetFactory(const std::string& type);
uint32_t PatchVirtualAddr(uint32_t addr);
std::optional<std::tuple<std::string, YAML::Node>> GetNodeByAddr(uint32_t addr);
+ std::optional<std::string> GetStringByAddr(uint32_t addr);
std::optional<std::tuple<std::string, YAML::Node>> GetSafeNodeByAddr(const uint32_t addr, std::string type);
+ std::optional<std::string> GetSafeStringByAddr(const uint32_t addr, std::string type);
std::optional<std::vector<std::tuple<std::string, YAML::Node>>> GetNodesByType(const std::string& type);
std::string GetSymbolFromAddr(uint32_t addr, bool validZero = false);
@@ -219,6 +221,7 @@ private:
CompressionType gCurrentCompressionType = CompressionType::None;
std::vector<Table> gTables;
std::vector<std::string> gCurrentExternalFiles;
+ std::unordered_map<int, std::string> gManualSegments;
std::unordered_set<std::string> gProcessedFiles;
std::unordered_map<std::string, std::vector<char>> gCompanionFiles;