mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
12 lines
349 B
C++
12 lines
349 B
C++
#include "test_Globals.hpp"
|
|
|
|
#include <RWConfig.hpp>
|
|
|
|
std::string Global::getGamePath() {
|
|
rwfs::path configPath = RWConfigParser::getDefaultConfigPath() / "openrw.ini";
|
|
RWConfigParser cfgParser;
|
|
auto [cfgLayer, parseResult] = cfgParser.loadFile(configPath);
|
|
BOOST_REQUIRE(parseResult.isValid());
|
|
return *cfgLayer.gamedataPath;
|
|
}
|