ReXGlue SDK
Toggle main menu visibility
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
18
namespace
rex
{
19
21
class
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
34
REX_API
PathSettings
&
GetPathSettings
();
35
36
#define REX_PATHS() ::rex::GetPathSettings()
37
38
}
// namespace rex
rex::PathSettings
Definition
path_settings.h:21
rex::SettingOwner::SettingOwner
SettingOwner(std::string_view scope)
rex
Definition
app.h:36
rex::GetPathSettings
PathSettings & GetPathSettings()
platform.h
Platform flags, packing macros and export markers.
REX_API
#define REX_API
Definition
platform.h:177
setting.h
Typed settings and the owners that declare them.
rex
path_settings.h
Generated by
1.18.0