aboutsummaryrefslogtreecommitdiff
path: root/src/path_utils.hpp
blob: 76567bc4c827380b49df1bd32bf747da6f02fe02 (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
#ifndef PATH_UTILS_HPP
#define PATH_UTILS_HPP

#include <optional>
#include <filesystem>

namespace engine::path_utils {

std::optional<std::filesystem::path> exe_path() noexcept;

class Paths {
    public:
        Paths() noexcept;

        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_assets_objs, m_assets_textures, m_spvshaders;
};

}

#endif // PATH_UTILS_HPP