QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Path.h
Go to the documentation of this file.
1#pragma once
2
7
8#include <filesystem>
9#include <optional>
10#include <string>
11
12namespace Quasar
13{
22 std::string NormalizePath(const std::filesystem::path& path);
23
33 std::optional<std::string> MakeRelativePath(const std::filesystem::path& path, const std::filesystem::path& root);
34}
Contains all the engine code.
std::optional< std::string > MakeRelativePath(const std::filesystem::path &path, const std::filesystem::path &root)
Makes a path relative to a root folder, in the form stored in engine files.
std::string NormalizePath(const std::filesystem::path &path)
Converts a path to the form stored in engine files, the same on every platform.