mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-11 02:41:35 -10:00
With this, we no longer require `std::filesystem` support to create the save file directory when it does not exist. Note that by default the save file directory exists because it is created by SDL, so this is mostly useful on platforms that override the save directory or use `UNPACKED_SAVES`.
24 lines
494 B
C++
24 lines
494 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "utils/stdcompat/optional.hpp"
|
|
|
|
namespace devilution {
|
|
|
|
namespace paths {
|
|
|
|
const std::string &BasePath();
|
|
const std::string &PrefPath();
|
|
const std::string &ConfigPath();
|
|
const std::string &AssetsPath();
|
|
|
|
void SetBasePath(const std::string &path);
|
|
void SetPrefPath(const std::string &path);
|
|
void SetConfigPath(const std::string &path);
|
|
void SetAssetsPath(const std::string &path);
|
|
|
|
} // namespace paths
|
|
|
|
} // namespace devilution
|