mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-04 00:38:51 +00:00
Some more ~~insect~~ bug fixes.
This commit is contained in:
@@ -208,6 +208,11 @@ void Store::loadSheets() {
|
||||
*/
|
||||
void Store::LoadFromFile(const std::string &file) {
|
||||
FILE *in = fopen(file.c_str(), "rt");
|
||||
if (!in) {
|
||||
this->valid = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this->storeJson = nlohmann::json::parse(in, nullptr, false);
|
||||
fclose(in);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user