aboutsummaryrefslogtreecommitdiff
path: root/src/path_utils.hpp
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2026-02-16 11:45:19 +0100
committervimene <vincent.menegaux@gmail.com>2026-02-16 11:45:19 +0100
commit523b27e38c0978f6513c95f90582e7e5ab160e3d (patch)
treeface9fe3aee978a9d1b9d41d3a86d7e28ba4f242 /src/path_utils.hpp
parent7536dd705d121ed3a49b7e4b05af88fd241d1674 (diff)
downloadengine-523b27e38c0978f6513c95f90582e7e5ab160e3d.tar.gz
small improvementsHEADmain
Diffstat (limited to 'src/path_utils.hpp')
-rw-r--r--src/path_utils.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/path_utils.hpp b/src/path_utils.hpp
index 76567bc..2594206 100644
--- a/src/path_utils.hpp
+++ b/src/path_utils.hpp
@@ -6,12 +6,16 @@
namespace engine::path_utils {
-std::optional<std::filesystem::path> exe_path() noexcept;
+std::optional<std::filesystem::path> exe() noexcept;
class Paths {
public:
Paths() noexcept;
+ const std::filesystem::path& exe() const & noexcept {
+ return m_exe;
+ }
+
const std::filesystem::path& assets_objs() const & noexcept {
return m_assets_objs;
}
@@ -25,7 +29,7 @@ class Paths {
}
private:
- std::filesystem::path m_assets_objs, m_assets_textures, m_spvshaders;
+ std::filesystem::path m_exe, m_assets_objs, m_assets_textures, m_spvshaders;
};
}