|
@@ -24,6 +24,7 @@ void Universe::load(std::string const & name, std::string const & fallback) {
|
|
|
if (!fs::exists(location)) { return; }
|
|
if (!fs::exists(location)) { return; }
|
|
|
|
|
|
|
|
auto import = [this](fs::path const & file) {
|
|
auto import = [this](fs::path const & file) {
|
|
|
|
|
+ if (file.extension() != "json") { return; }
|
|
|
Json::Value json;
|
|
Json::Value json;
|
|
|
std::ifstream in(file.string());
|
|
std::ifstream in(file.string());
|
|
|
in >> json;
|
|
in >> json;
|