mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +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));
|
json content = json::parse (WallpaperEngine::FileSystem::loadFullFile (filename));
|
||||||
|
|
||||||
auto title = jsonFindRequired (&content, "title", "Project title missing");
|
auto title = jsonFindRequired (&content, "title", "Project title missing");
|
||||||
auto type = jsonFindRequired (&content, "title", "Project type missing");
|
auto type = jsonFindRequired (&content, "type", "Project type missing");
|
||||||
auto file = jsonFindRequired (&content, "title", "Project's main file missing");
|
auto file = jsonFindRequired (&content, "file", "Project's main file missing");
|
||||||
auto general = content.find ("general");
|
auto general = content.find ("general");
|
||||||
|
|
||||||
CProject* project = new CProject (
|
CProject* project = new CProject (
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
// filesystem includes
|
// filesystem includes
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
// engine includes
|
// engine includes
|
||||||
#include "WallpaperEngine/Irrlicht/CContext.h"
|
#include "WallpaperEngine/Irrlicht/CContext.h"
|
||||||
|
|
||||||
@ -10,6 +12,7 @@ using namespace WallpaperEngine;
|
|||||||
|
|
||||||
std::string FileSystem::loadFullFile (const irr::io::path& file)
|
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);
|
irr::io::IReadFile* reader = IrrlichtContext->getDevice ()->getFileSystem ()->createAndOpenFile (file);
|
||||||
|
|
||||||
if (reader == nullptr)
|
if (reader == nullptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user