1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-02 16:49:46 +02:00
openrw/tests/test_Globals.cpp

12 lines
282 B
C++

#include "test_Globals.hpp"
#include <GameConfig.hpp>
#if RW_TEST_WITH_DATA
std::string Global::getGamePath() {
GameConfig config;
config.loadFile(GameConfig::getDefaultConfigPath() / "openrw.ini");
return config.getGameDataPath().string(); //FIXME: use path
}
#endif