From 495d5ae6a05ace133e9e07566805c35dbbe81062 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 29 Jul 2026 23:00:39 +0000 Subject: =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20HarbourMasters/T?= =?UTF-8?q?orch@2b28bcf03bfe7892f7f987690069a1b7414ded3e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Companion_8h_source.html | 176 ++++++++++++++++++++++---------------------- classCompanion-members.html | 3 +- classCompanion.html | 2 + 3 files changed, 94 insertions(+), 87 deletions(-) diff --git a/Companion_8h_source.html b/Companion_8h_source.html index 0755779..0f86bdf 100644 --- a/Companion_8h_source.html +++ b/Companion_8h_source.html @@ -362,92 +362,96 @@ $(function(){initNavTree('Companion_8h_source.html','',''); });
252 void SetCompressedSegment(uint32_t segmentId, uint32_t compressedFileOffset, uint32_t offset);
253 bool GetCompressedSegmentOffset(uint32_t* addr);
254
-
255#ifdef BUILD_UI
-
256 void RegisterUIFactory(const std::string& type, const std::shared_ptr<BaseFactoryUI>& factory);
-
257 std::optional<std::shared_ptr<BaseFactoryUI>> GetUIFactory(const std::string& type);
-
258 const std::unordered_map<std::string, std::vector<ParseResultData>>& GetParseResults() { return this->gParseResults; }
-
259#endif
-
260private:
-
261 TorchConfig gConfig;
-
262 YAML::Node gModdingConfig;
-
263 fs::path gSourceDirectory;
-
264 fs::path gDestinationDirectory;
-
265 fs::path gCurrentDirectory;
-
266 std::string gCurrentHash;
-
267 std::string gAssetPath;
-
268 std::string gVersion;
-
269 std::vector<uint8_t> gRomData;
-
270 std::optional<std::filesystem::path> gRomPath;
-
271 bool gNodeForceProcessing = false;
-
272 bool gIndividualIncludes = false;
-
273 YAML::Node gHashNode;
-
274 std::shared_ptr<N64::Cartridge> gCartridge;
-
275 std::string gGameTitle;
-
276 std::unordered_map<std::string, std::vector<YAML::Node>> gCourseMetadata;
-
277 std::unordered_map<std::string, std::unordered_map<int32_t, std::string>> gEnums;
-
278 BinaryWrapper* gCurrentWrapper;
-
279
-
280 // Temporal Variables
-
281 std::string gCurrentAssetName;
-
282 std::atomic<size_t>* gAssetCounter = nullptr;
-
283 std::atomic<size_t>* gAssetTotal = nullptr;
-
284 std::function<void(int)> gPhaseCallback;
-
285 std::string gCurrentFile;
-
286 std::vector<std::string> gSubFileList;
-
287 std::string gCurrentVirtualPath;
-
288 std::string gFileHeader;
-
289 bool gEnablePadGen = false;
-
290 bool mShouldProcess = true;
-
291 uint32_t gCurrentPad = 0;
-
292 uint32_t gCurrentFileOffset;
-
293 uint32_t gCurrentSegmentNumber;
-
294 std::optional<VRAMEntry> gCurrentVram;
-
295 CompressionType gCurrentCompressionType = CompressionType::None;
-
296 std::optional<std::uint32_t> gCurrentCompressedSize;
-
297 std::vector<Table> gTables;
-
298 std::vector<std::string> gCurrentExternalFiles;
-
299 std::unordered_map<int, std::string> gManualSegments;
-
300 std::unordered_set<std::string> gProcessedFiles;
-
301
-
302 std::unordered_map<std::string, std::vector<char>> gCompanionFiles;
-
303 std::vector<std::pair<std::string, std::vector<char>>> gArchiveFiles;
-
304 std::unordered_map<std::string, std::vector<ParseResultData>> gParseResults;
-
305 std::vector<std::string> gAdditionalFiles;
-
306
-
307 std::unordered_map<std::string, std::string> gModdedAssetPaths;
-
308 std::variant<std::vector<std::string>, std::string> gWriteOrder;
-
309 std::unordered_map<std::string, std::shared_ptr<BaseFactory>> gFactories;
-
310#ifdef BUILD_UI
-
311 std::unordered_map<std::string, std::shared_ptr<BaseFactoryUI>> gUIFactories;
-
312#endif
-
313 std::unordered_map<std::string, std::map<std::string, std::vector<WriteEntry>>> gWriteMap;
-
314 std::unordered_map<std::string, std::tuple<uint32_t, uint32_t>> gVirtualAddrMap;
-
315 std::unordered_map<std::string, std::unordered_map<uint32_t, std::tuple<std::string, YAML::Node>>> gAddrMap;
-
316 // Cached results of GetNodesByType keyed by [file][type][includeAutogen?].
-
317 // Built lazily; invalidated on RegisterAsset for the affected (file, type).
-
318 // Index 0 = !includeAutogen, index 1 = includeAutogen.
-
319 std::unordered_map<std::string,
-
320 std::unordered_map<std::string, std::array<std::vector<std::tuple<std::string, YAML::Node>>, 2>>>
-
321 gNodesByTypeCache;
-
322 // Validity bitmap; bit 0 = !includeAutogen, bit 1 = includeAutogen.
-
323 std::unordered_map<std::string, std::unordered_map<std::string, uint8_t>> gNodesByTypeCacheValid;
-
324
-
325 void ProcessParseFile(YAML::Node root, std::atomic<size_t>& assetCount);
-
326 void ProcessExportFile();
-
327 void ProcessFile(YAML::Node root);
-
328 void ProcessFile(YAML::Node root, std::atomic<size_t>& assetCount);
-
329 std::optional<std::tuple<std::string, YAML::Node>> FindNodeInOverlaySegments(uint32_t addr, const std::string& file);
-
330 std::optional<std::tuple<std::string, YAML::Node>> FindInExternalByVRAM(uint32_t addr, const std::string& file);
-
331 void ParseEnums(std::string& file);
-
332 void ParseHash();
-
333 void ParseModdingConfig();
-
334 void ParseCurrentFileConfig(YAML::Node node, std::atomic<size_t>& assetCount);
-
335 void RegisterFactory(const std::string& type, const std::shared_ptr<BaseFactory>& factory);
-
336 void ExtractNode(YAML::Node& node, std::string& name, BinaryWrapper* binary);
-
337 void ProcessTables(YAML::Node& rom);
-
338 void LoadYAMLRecursively(const std::string &dirPath, std::vector<YAML::Node> &result, bool skipRoot);
-
339 std::optional<ParseResultData> ParseNode(YAML::Node& node, std::string& name);
-
340};
+
255 void SetSingleYMLPath(const std::string& path) { this->gSingleYMLPath = path; }
+
256
+
257#ifdef BUILD_UI
+
258 void RegisterUIFactory(const std::string& type, const std::shared_ptr<BaseFactoryUI>& factory);
+
259 std::optional<std::shared_ptr<BaseFactoryUI>> GetUIFactory(const std::string& type);
+
260 const std::unordered_map<std::string, std::vector<ParseResultData>>& GetParseResults() { return this->gParseResults; }
+
261#endif
+
262private:
+
263 TorchConfig gConfig;
+
264 YAML::Node gModdingConfig;
+
265 fs::path gSourceDirectory;
+
266 fs::path gDestinationDirectory;
+
267 fs::path gCurrentDirectory;
+
268 std::string gCurrentHash;
+
269 std::string gAssetPath;
+
270 std::string gVersion;
+
271 std::string gSingleYMLPath;
+
272 std::vector<uint8_t> gRomData;
+
273 std::optional<std::filesystem::path> gRomPath;
+
274 bool gNodeForceProcessing = false;
+
275 bool gIndividualIncludes = false;
+
276 YAML::Node gHashNode;
+
277 std::shared_ptr<N64::Cartridge> gCartridge;
+
278 std::string gGameTitle;
+
279 std::unordered_map<std::string, std::vector<YAML::Node>> gCourseMetadata;
+
280 std::unordered_map<std::string, std::unordered_map<int32_t, std::string>> gEnums;
+
281 BinaryWrapper* gCurrentWrapper;
+
282
+
283 // Temporal Variables
+
284 std::string gCurrentAssetName;
+
285 std::atomic<size_t>* gAssetCounter = nullptr;
+
286 std::atomic<size_t>* gAssetTotal = nullptr;
+
287 std::function<void(int)> gPhaseCallback;
+
288 std::string gCurrentFile;
+
289 std::vector<std::string> gSubFileList;
+
290 std::string gCurrentVirtualPath;
+
291 std::string gFileHeader;
+
292 bool gEnablePadGen = false;
+
293 bool mShouldProcess = true;
+
294 uint32_t gCurrentPad = 0;
+
295 uint32_t gCurrentFileOffset;
+
296 uint32_t gCurrentSegmentNumber;
+
297 std::optional<VRAMEntry> gCurrentVram;
+
298 CompressionType gCurrentCompressionType = CompressionType::None;
+
299 std::optional<std::uint32_t> gCurrentCompressedSize;
+
300 std::vector<Table> gTables;
+
301 std::vector<std::string> gCurrentExternalFiles;
+
302 std::unordered_map<int, std::string> gManualSegments;
+
303 std::unordered_set<std::string> gProcessedFiles;
+
304
+
305 std::unordered_map<std::string, std::vector<char>> gCompanionFiles;
+
306 std::vector<std::pair<std::string, std::vector<char>>> gArchiveFiles;
+
307 std::unordered_map<std::string, std::vector<ParseResultData>> gParseResults;
+
308 std::vector<std::string> gAdditionalFiles;
+
309
+
310 std::unordered_map<std::string, std::string> gModdedAssetPaths;
+
311 std::variant<std::vector<std::string>, std::string> gWriteOrder;
+
312 std::unordered_map<std::string, std::shared_ptr<BaseFactory>> gFactories;
+
313#ifdef BUILD_UI
+
314 std::unordered_map<std::string, std::shared_ptr<BaseFactoryUI>> gUIFactories;
+
315#endif
+
316 std::unordered_map<std::string, std::map<std::string, std::vector<WriteEntry>>> gWriteMap;
+
317 std::unordered_map<std::string, std::tuple<uint32_t, uint32_t>> gVirtualAddrMap;
+
318 std::unordered_map<std::string, std::unordered_map<uint32_t, std::tuple<std::string, YAML::Node>>> gAddrMap;
+
319 // Cached results of GetNodesByType keyed by [file][type][includeAutogen?].
+
320 // Built lazily; invalidated on RegisterAsset for the affected (file, type).
+
321 // Index 0 = !includeAutogen, index 1 = includeAutogen.
+
322 std::unordered_map<std::string,
+
323 std::unordered_map<std::string, std::array<std::vector<std::tuple<std::string, YAML::Node>>, 2>>>
+
324 gNodesByTypeCache;
+
325 // Validity bitmap; bit 0 = !includeAutogen, bit 1 = includeAutogen.
+
326 std::unordered_map<std::string, std::unordered_map<std::string, uint8_t>> gNodesByTypeCacheValid;
+
327
+
328 void ProcessParseFile(YAML::Node root, std::atomic<size_t>& assetCount);
+
329 void ProcessExportFile();
+
330 void ProcessFile(YAML::Node root);
+
331 void ProcessFile(YAML::Node root, std::atomic<size_t>& assetCount);
+
332 std::optional<std::tuple<std::string, YAML::Node>> FindNodeInOverlaySegments(uint32_t addr, const std::string& file);
+
333 std::optional<std::tuple<std::string, YAML::Node>> FindInExternalByVRAM(uint32_t addr, const std::string& file);
+
334 void ParseEnums(std::string& file);
+
335 void ParseHash();
+
336 void ParseModdingConfig();
+
337 void ParseCurrentFileConfig(YAML::Node node, std::atomic<size_t>& assetCount);
+
338 void RegisterFactory(const std::string& type, const std::shared_ptr<BaseFactory>& factory);
+
339 void ExtractNode(YAML::Node& node, std::string& name, BinaryWrapper* binary);
+
340 void ProcessTables(YAML::Node& rom);
+
341 void LoadYAMLRecursively(const std::string &dirPath, std::vector<YAML::Node> &result, bool skipRoot);
+
342 std::vector<fs::directory_entry> GetAssetYMLs(YAML::Node& rom) const;
+
343 std::optional<ParseResultData> ParseNode(YAML::Node& node, std::string& name);
+
344};
Definition BinaryWrapper.h:7
Definition Cartridge.h:15
diff --git a/classCompanion-members.html b/classCompanion-members.html index b9f5b8c..14e5fb5 100644 --- a/classCompanion-members.html +++ b/classCompanion-members.html @@ -162,7 +162,8 @@ $(function(){initNavTree('classCompanion.html','',''); }); SetPhaseCallback(std::function< void(int)> cb) (defined in Companion)Companioninline SetProcess(bool shouldProcess) (defined in Companion)Companion SetRomPath(std::filesystem::path path) (defined in Companion)Companioninline - SetVersion(const std::string &version) (defined in Companion)Companioninline + SetSingleYMLPath(const std::string &path) (defined in Companion)Companioninline + SetVersion(const std::string &version) (defined in Companion)Companioninline diff --git a/classCompanion.html b/classCompanion.html index 6672108..4e42503 100644 --- a/classCompanion.html +++ b/classCompanion.html @@ -224,6 +224,8 @@ std::string GetCurrentDire void SetCompressedSegment (uint32_t segmentId, uint32_t compressedFileOffset, uint32_t offset) bool GetCompressedSegmentOffset (uint32_t *addr) + +void SetSingleYMLPath (const std::string &path) -- cgit v1.2.3

Static Public Member Functions