mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-04 09:39:46 +02: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;
|
|
}
|