Perform chdir(gameFolder) early in main()

This commit is contained in:
Jonas Kulla 2014-12-23 19:15:13 +01:00
parent 03a6c657c4
commit fcfa079e7b
2 changed files with 8 additions and 11 deletions

View file

@ -111,16 +111,6 @@ struct SharedStatePrivate
fontState(threadData->config),
stampCounter(0)
{
if (!config.gameFolder.empty())
{
int result = chdir(config.gameFolder.c_str());
if (result != 0)
throw Exception(Exception::MKXPError,
"Unable to switch into gameFolder '%s'",
config.gameFolder.c_str());
}
// FIXME find out correct archive filename
std::string archPath = defGameArchive();