devilutionX/Source/utils/paths.h
Gleb Mazovetskiy f5d8f513cb AssetsPath: Default to exe dir
Also adds `SetAssetsPath`, for use by tests.
2021-12-16 21:26:11 +01:00

25 lines
581 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();
const std::optional<std::string> &MpqDir();
void SetBasePath(const std::string &path);
void SetPrefPath(const std::string &path);
void SetConfigPath(const std::string &path);
void SetAssetsPath(const std::string &path);
void SetMpqDir(const std::string &path);
} // namespace paths
} // namespace devilution