Merge pull request #2862 from MTres19/unlock_all_cmdline

Add option to unlock everything with a command line flag
This commit is contained in:
Deve 2017-06-17 18:04:36 +02:00 committed by GitHub
commit cfc506d0cf

View File

@ -558,6 +558,8 @@ void cmdLineHelp()
"laps.\n"
" --profile-time=n Enable automatic driven profile mode for n "
"seconds.\n"
" --unlock-all Permanently unlock all karts and tracks for testing.\n"
" --no-unlock-all Disable unlock-all (i.e. base unlocking on player achievement).\n"
" --no-graphics Do not display the actual race.\n"
" --demo-mode=t Enables demo mode after t seconds of idle time in "
"main menu.\n"
@ -1235,6 +1237,16 @@ int handleCmdLine()
}
} // --profile-laps
if(CommandLine::has("--unlock-all"))
{
UserConfigParams::m_everything_unlocked = true;
} // --unlock-all
if(CommandLine::has("--no-unlock-all"))
{
UserConfigParams::m_everything_unlocked = false;
} // --no-unlock-all
if(CommandLine::has("--profile-time", &n))
{
Log::verbose("main", "Profiling: %d seconds.", n);