1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 12:22:34 +01: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