mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
no invalid json
This commit is contained in:
parent
1f2ca138dd
commit
fccecf023b
@ -65,7 +65,11 @@ void SettingsStorage::init(const std::string & dataFilename, const std::string &
|
||||
|
||||
// Probably new install. Create config file to save settings to
|
||||
if (!CResourceHandler::get("local")->existsResource(confName))
|
||||
{
|
||||
CResourceHandler::get("local")->createResource(dataFilename);
|
||||
if(schema.empty())
|
||||
invalidateNode(std::vector<std::string>());
|
||||
}
|
||||
|
||||
if(!schema.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user