Preserve custom global fields in layouts, heal_locations, region_map_sections, and map_groups json files

This commit is contained in:
GriffinR
2025-03-31 19:33:31 -04:00
parent c9b0d139b2
commit a4508918a1
2 changed files with 55 additions and 7 deletions

View File

@@ -269,6 +269,12 @@ private:
QHash<QString, QString> speciesToIconPath;
QHash<QString, Map*> maps;
// Fields for preserving top-level JSON data that Porymap isn't expecting.
QJsonObject customLayoutsData;
QJsonObject customMapSectionsData;
QJsonObject customMapGroupsData;
QJsonObject customHealLocationsData;
// Maps/layouts represented in these sets have been fully loaded from the project.
// If a valid map name / layout id is not in these sets, a Map / Layout object exists
// for it in Project::maps / Project::mapLayouts, but it has been minimally populated