#include <runtime_paths.h>
Runtime locations for files that must never be written into game assets.
◆ assetRoot()
| const std::filesystem::path & RuntimePaths::assetRoot |
( |
| ) |
|
|
static |
Read-only data root: the directory that contains assets/. FM_ASSET_ROOT overrides; otherwise the first of <exe>/../share/footballmanagement (Linux install), <exe>/../Resources (macOS bundle) or <exe> (Windows, portable) holding the assets, falling back to the source checkout. Resolved once per process.
◆ capturePath()
| std::filesystem::path RuntimePaths::capturePath |
( |
const char * |
filename | ) |
|
|
static |
◆ imguiIniPath()
| std::filesystem::path RuntimePaths::imguiIniPath |
( |
| ) |
|
|
static |
◆ logPath()
| std::filesystem::path RuntimePaths::logPath |
( |
| ) |
|
|
static |
◆ previousLogPath()
| std::filesystem::path RuntimePaths::previousLogPath |
( |
| ) |
|
|
static |
◆ removeAllSaves()
| void RuntimePaths::removeAllSaves |
( |
| ) |
|
|
static |
◆ removeSave()
| void RuntimePaths::removeSave |
( |
int |
slot | ) |
|
|
static |
Removes only save files owned by this runtime root, including WAL files.
◆ root()
| std::filesystem::path RuntimePaths::root |
( |
| ) |
|
|
static |
Returns the writable root. FM_RUNTIME_ROOT is an explicit test/automation override; otherwise SDL's platform-specific preference location is used. FM_TEST_RUNTIME_ROOT gives each process its own <root>/<pid> directory, removed at process exit unless FM_KEEP_TEST_ARTIFACTS is set (non-"0").
◆ saveDirectory()
| std::filesystem::path RuntimePaths::saveDirectory |
( |
| ) |
|
|
static |
◆ savePath()
| std::filesystem::path RuntimePaths::savePath |
( |
int |
slot | ) |
|
|
static |
◆ settingsPath()
| std::filesystem::path RuntimePaths::settingsPath |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: