aboutsummaryrefslogtreecommitdiff
path: root/src/path_utils.hpp
blob: 25942061b1ad1745d2fbd42d7d889d68fd3307ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PATH_UTILS_HPP
#define PATH_UTILS_HPP

#include <optional>
#include <filesystem>

namespace engine::path_utils {

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;
        }

        const std::filesystem::path& assets_textures() const & noexcept {
            return m_assets_textures;
        }

        const std::filesystem::path& spvshaders() const & noexcept {
            return m_spvshaders;
        }

    private:
        std::filesystem::path m_exe, m_assets_objs, m_assets_textures, m_spvshaders;
};

}

#endif // PATH_UTILS_HPP