mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
added missing files
This commit is contained in:
parent
fe220ee172
commit
6cb5ca653d
2 changed files with 80 additions and 0 deletions
22
src/files/engine_paths.h
Normal file
22
src/files/engine_paths.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef FILES_ENGINE_PATHS_H_
|
||||
#define FILES_ENGINE_PATHS_H_
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
class EnginePaths {
|
||||
std::filesystem::path userfiles {"."};
|
||||
std::filesystem::path resources {"res"};
|
||||
public:
|
||||
std::filesystem::path getUserfiles() const;
|
||||
std::filesystem::path getResources() const;
|
||||
|
||||
std::filesystem::path getScreenshotFile(std::string ext);
|
||||
std::filesystem::path getWorldsFolder();
|
||||
bool isWorldNameUsed(std::string name);
|
||||
|
||||
void setUserfiles(std::filesystem::path folder);
|
||||
void setResources(std::filesystem::path folder);
|
||||
};
|
||||
|
||||
#endif // FILES_ENGINE_PATHS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue