VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
PathUtils.hpp
1
6
7// Partially generated by AI. all stackoverflow solutions succked ass
8
9#pragma once
10#include <string>
11#include <filesystem>
12#include "VEX/VEX_export.h"
13
14namespace vex {
18 void VEX_EXPORT SetAssetRoot(const std::string& projectPath);
19
22 void VEX_EXPORT SetUserDataDir(const std::string& userDataDir);
23
26 std::string VEX_EXPORT GetAssetDir();
27
30 std::string VEX_EXPORT GetUserDataDir();
31
39 std::string VEX_EXPORT GetAssetPath(const std::string& relativePath);
40
44 std::string VEX_EXPORT GetUserDataPath(const std::string& relativePath);
45
52 std::filesystem::path VEX_EXPORT GetExecutableDir();
53
58 std::filesystem::path VEX_EXPORT GetLogDir();
59}
std::string VEX_EXPORT GetAssetDir()
Gets the current asset directory override.
Definition PathUtils.cpp:29
std::filesystem::path VEX_EXPORT GetExecutableDir()
Retrieves the directory containing the current executable.
Definition PathUtils.cpp:37
void VEX_EXPORT SetAssetRoot(const std::string &projectPath)
Overrides the default asset root directory.
Definition PathUtils.cpp:18
std::filesystem::path VEX_EXPORT GetLogDir()
Gets the directory where logs and crash dumps are stored.
Definition PathUtils.cpp:95
std::string VEX_EXPORT GetAssetPath(const std::string &relativePath)
Resolves the absolute path of an asset based on the current build configuration.
Definition PathUtils.cpp:73
std::string VEX_EXPORT GetUserDataDir()
Gets the current user data directory.
Definition PathUtils.cpp:33
void VEX_EXPORT SetUserDataDir(const std::string &userDataDir)
Sets the current user data directory.
Definition PathUtils.cpp:22
std::string VEX_EXPORT GetUserDataPath(const std::string &relativePath)
Resolves the absolute path of a user data file based on the current user data directory.
Definition PathUtils.cpp:91