*Only* open valid Scripts.

This commit is contained in:
SuperSaiyajinStackZ
2019-12-22 17:49:23 +01:00
parent 11e7664706
commit 3ebdb7e95d
5 changed files with 29 additions and 15 deletions
-1
View File
@@ -59,7 +59,6 @@ nlohmann::json infoFromScript(const std::string &path) {
FILE* file = fopen(path.c_str(), "r");
if(!file) {
fclose(file);
return out;
}
in = nlohmann::json::parse(file, nullptr, false);