mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-28 21:08:05 +03:00
11 lines
360 B
C++
11 lines
360 B
C++
#include "test_Globals.hpp"
|
|
|
|
#include <RWConfig.hpp>
|
|
|
|
std::string Global::getGamePath() {
|
|
std::filesystem::path configPath = RWConfigParser::getDefaultConfigPath() / "openrw.ini";
|
|
RWConfigParser cfgParser;
|
|
auto [cfgLayer, parseResult] = cfgParser.loadFile(configPath);
|
|
BOOST_REQUIRE(parseResult.isValid());
|
|
return *cfgLayer.gamedataPath;
|
|
}
|