linux-wallpaperengine/src/WallpaperEngine/Assets/CDirectory.h
Alexis Maiquez b69ce8ba57 Added support for running multiple X11 backgrounds off the same instance
Window mode now has extra settings for setting the position and size
Fixed audio not muting when --silent was used

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-03-21 07:07:36 +01:00

25 lines
602 B
C++

#pragma once
#include <string>
#include <stdexcept>
#include <map>
#include <filesystem>
#include "CContainer.h"
#include "CFileEntry.h"
namespace WallpaperEngine::Assets
{
class CDirectory : public CContainer
{
public:
explicit CDirectory (std::filesystem::path basepath);
~CDirectory ();
std::filesystem::path resolveRealFile (std::string filename) const override;
const void* readFile (std::string filename, uint32_t* length) const override;
private:
std::filesystem::path m_basepath;
std::map <std::string, CFileEntry> m_cache;
};
}