ReXGlue SDK
Loading...
Searching...
No Matches
path_settings.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include <filesystem>
14
15#include <rex/platform.h>
16#include <rex/setting.h>
17
18namespace rex {
19
21class REX_API PathSettings final : public SettingOwner {
22 public:
23 PathSettings();
24
25 REX_SETTING(std::filesystem::path, config_file, "{app.root}/{app.name}.toml", "Config file",
26 kStartupOnly);
27 REX_SETTING(std::filesystem::path, user_root, "{app.root}/user", "Saves and per player data",
28 kStartupOnly);
29 REX_SETTING(std::filesystem::path, cache_root, "",
30 "Shader and pipeline caches, no shader storage when empty", kStartupOnly);
31};
32
35
36#define REX_PATHS() ::rex::GetPathSettings()
37
38} // namespace rex
Definition path_settings.h:21
SettingOwner(std::string_view scope)
Definition app.h:36
PathSettings & GetPathSettings()
Platform flags, packing macros and export markers.
#define REX_API
Definition platform.h:177
Typed settings and the owners that declare them.