1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-14 14:44:22 +01:00
openrw/tests/test_Globals.cpp

12 lines
282 B
C++
Raw Normal View History

#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