mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 14:22:24 +08:00

~ Added a small utils class to read full files to ram for the purpose of parsing json files Most of these files are really small, so there shouldn't really be any memory concerns + Added support for loading backgrounds directly from PKG files Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
31 lines
527 B
C++
31 lines
527 B
C++
#ifndef WALLENGINE_PROJECT_H
|
|
#define WALLENGINE_PROJECT_H
|
|
|
|
#include <irrlicht/irrlicht.h>
|
|
#include <nlohmann/json.hpp>
|
|
#include "scene.h"
|
|
|
|
namespace wp
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
class project
|
|
{
|
|
public:
|
|
project (irr::io::path& jsonfile_path);
|
|
|
|
scene* getScene ();
|
|
|
|
private:
|
|
json m_projectFile;
|
|
std::string m_content;
|
|
|
|
std::string m_title;
|
|
std::string m_type;
|
|
irr::io::path m_file;
|
|
scene* m_scene;
|
|
};
|
|
};
|
|
|
|
#endif //WALLENGINE_PROJECT_H
|