SharedState: Fix asset path priority (rgssad -> "." -> RTPs)

This commit is contained in:
Jonas Kulla 2014-08-22 23:58:14 +02:00
parent f76ecfdba8
commit b380a0ebdd
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,6 @@ struct SharedStatePrivate
throw Exception(Exception::MKXPError,
"Unable to switch into gameFolder '%s'",
config.gameFolder.c_str());
fileSystem.addPath(".");
}
// FIXME find out correct archive filename
@ -133,6 +131,8 @@ struct SharedStatePrivate
fclose(tmp);
}
fileSystem.addPath(".");
for (size_t i = 0; i < config.rtps.size(); ++i)
fileSystem.addPath(config.rtps[i].c_str());