SamTheBlow / grand-strategy-game

A grand strategy game made in Godot.
MIT License
7 stars 4 forks source link

Ensure that loaded JSON files are valid #116

Open SamTheBlow opened 11 months ago

SamTheBlow commented 11 months ago

Currently, in many different parts of the code, a loaded JSON file is used without checking if its content is valid. Because of this, one can easily edit a JSON file to cause crashes.

SamTheBlow commented 8 months ago

JSON is all loaded in one class now, so we just need to include all the necessary checks in that one class (currently named GameFromJSON)