Use argc and argv passed down

This commit is contained in:
mdiluzio 2015-01-02 15:06:04 +00:00
parent 2281bcb6cd
commit 0619031cb6
7 changed files with 13 additions and 17 deletions

View file

@ -80,9 +80,9 @@ std::string getGamesDir()
}
// =====================================================================================================================
int runFromFilesystem( const std::string& gamestring )
int runFromFilesystem(int argc, char* argv[])
{
std::string gamefile = gamestring;
std::string gamefile = argv[1];
// Default for maps
std::string ttrts_maps_dir = getMapsDir();