external file processing works

This commit is contained in:
inspectredc
2024-04-22 16:05:50 -06:00
committed by Lywx
parent 2503284a2d
commit 6fd59e84ee
2 changed files with 440 additions and 409 deletions
+437 -409
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -6,6 +6,7 @@
#include <vector>
#include <fstream>
#include <unordered_map>
#include <unordered_set>
#include <variant>
#include "factories/BaseFactory.h"
#include "n64/Cartridge.h"
@@ -173,6 +174,7 @@ private:
CompressionType gCurrentCompressionType = CompressionType::None;
std::vector<Table> gTables;
std::vector<std::string> gCurrentExternalFiles;
std::unordered_set<std::string> gProcessedFiles;
std::unordered_map<std::string, std::vector<ParseResultData>> gParseResults;
@@ -183,6 +185,7 @@ private:
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;
void ProcessFile(YAML::Node root);
void ParseEnums(std::string& file);
void ParseHash();
void ParseModdingConfig();