|
|
@@ -18,9 +18,9 @@ CProject* CProject::fromFile (const irr::io::path& filename)
|
|
|
{
|
|
|
json content = json::parse (WallpaperEngine::FileSystem::loadFullFile (filename));
|
|
|
|
|
|
- auto title = jsonFindValueRequired (&content, "title", "Project title missing");
|
|
|
- auto type = jsonFindValueRequired (&content, "title", "Project type missing");
|
|
|
- auto file = jsonFindValueRequired (&content, "title", "Project's main file missing");
|
|
|
+ auto title = jsonFindRequired (&content, "title", "Project title missing");
|
|
|
+ auto type = jsonFindRequired (&content, "title", "Project type missing");
|
|
|
+ auto file = jsonFindRequired (&content, "title", "Project's main file missing");
|
|
|
auto general = content.find ("general");
|
|
|
|
|
|
CProject* project = new CProject (
|