Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Path.cpp
Go to the documentation of this file.
1#include "Engine/Files/Path.h"
2#include <filesystem>
3
4namespace EngineCore {
5 std::string Path::getEngineRoot() {
6 return ENGINE_ROOT;
7 }
8
9 constexpr std::string Path::getProjectRoot() {
10 return GAME_ROOT;
11 }
12
13
14
15 bool Path::doesFileExist(const std::filesystem::path &path) {
16 return std::filesystem::exists(path);
17 }
18
19 bool Path::doesGltfFileExist(const std::filesystem::path &path) {
20 return doesFileExist(path) && path.extension() == ".gltf";
21 }
22
23 bool Path::doesExrFileExist(const std::filesystem::path &path) {
24 return doesFileExist(path) && path.extension() == ".exr";
25 }
26}
static std::string getEngineRoot()
Definition Path.cpp:5
static bool doesFileExist(const std::filesystem::path &path)
Definition Path.cpp:15
static bool doesGltfFileExist(const std::filesystem::path &path)
Definition Path.cpp:19
static bool doesExrFileExist(const std::filesystem::path &path)
Definition Path.cpp:23
static constexpr std::string getProjectRoot()
Gets the root location of the whole game. This is.
Definition Path.cpp:9
Log category system implementation.