1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 20:32:43 +01:00
openrw/rwgame/main.cpp

16 lines
214 B
C++
Raw Normal View History

#include "RWGame.hpp"
2014-05-25 23:47:10 +02:00
std::string getGamePath()
{
auto v = getenv(ENV_GAME_PATH_NAME);
return v ? v : "";
}
int main(int argc, char *argv[])
{
RWGame game( getGamePath(), argc, argv );
return game.run();
}