Forgot to change key parameter to correct value

This commit is contained in:
IceCryptonym 2020-03-24 20:31:31 +10:00
parent 7baa77ef7e
commit 52fc0ffbac
2 changed files with 5 additions and 2 deletions

View File

@ -19,8 +19,8 @@ CProject* CProject::fromFile (const irr::io::path& filename)
json content = json::parse (WallpaperEngine::FileSystem::loadFullFile (filename));
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 type = jsonFindRequired (&content, "type", "Project type missing");
auto file = jsonFindRequired (&content, "file", "Project's main file missing");
auto general = content.find ("general");
CProject* project = new CProject (

View File

@ -1,6 +1,8 @@
// filesystem includes
#include "FileSystem.h"
#include <iostream>
// engine includes
#include "WallpaperEngine/Irrlicht/CContext.h"
@ -10,6 +12,7 @@ using namespace WallpaperEngine;
std::string FileSystem::loadFullFile (const irr::io::path& file)
{
std::cout << file.c_str() << std::endl;
irr::io::IReadFile* reader = IrrlichtContext->getDevice ()->getFileSystem ()->createAndOpenFile (file);
if (reader == nullptr)