mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00
Forgot to change key parameter to correct value
This commit is contained in:
parent
7baa77ef7e
commit
52fc0ffbac
@ -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 (
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user