mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
fix(editor): harden JSON handling, quest loading, and content validation
- Quest editor: add loadFromFile() with nlohmann/json, chain validation with circular reference detection, wire into ADT load and save pipeline - Project: replace naive substring JSON parsing with nlohmann/json for both save() and load(), fix shell injection in gitCommit() - Content pack: replace manual JSON with nlohmann/json, validate binary format magic numbers (WHM1/WOM1/WOB1), add WOB to openFormatScore (now scores 0-6), mark invalid files with (!) in summary
This commit is contained in:
parent
4fc0361f7a
commit
2eec089ef5
6 changed files with 265 additions and 153 deletions
|
|
@ -38,8 +38,9 @@ public:
|
|||
// Validate that a zone directory has all required open format files
|
||||
struct ValidationResult {
|
||||
bool hasWot = false, hasWhm = false, hasZoneJson = false;
|
||||
bool hasPng = false, hasWom = false, hasCreatures = false;
|
||||
bool hasQuests = false, hasObjects = false;
|
||||
bool hasPng = false, hasWom = false, hasWob = false;
|
||||
bool hasCreatures = false, hasQuests = false, hasObjects = false;
|
||||
bool whmValid = false, womValid = false, wobValid = false;
|
||||
int openFormatScore() const;
|
||||
std::string summary() const;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue