Add option to unlock everything (and disable that option) from the command line
This was a complaint of Michael Larabel from Phoronix and is why he doesn't use STK in benchmarks; because the new tracks are mostly locked from the start and unavailable even with the --track flag
This commit is contained in:
parent
10e439b6a1
commit
3dee6ce5dd
14
src/main.cpp
14
src/main.cpp
@ -558,6 +558,8 @@ void cmdLineHelp()
|
|||||||
"laps.\n"
|
"laps.\n"
|
||||||
" --profile-time=n Enable automatic driven profile mode for n "
|
" --profile-time=n Enable automatic driven profile mode for n "
|
||||||
"seconds.\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"
|
" --no-graphics Do not display the actual race.\n"
|
||||||
" --demo-mode=t Enables demo mode after t seconds of idle time in "
|
" --demo-mode=t Enables demo mode after t seconds of idle time in "
|
||||||
"main menu.\n"
|
"main menu.\n"
|
||||||
@ -1234,7 +1236,17 @@ int handleCmdLine()
|
|||||||
race_manager->setNumLaps(n);
|
race_manager->setNumLaps(n);
|
||||||
}
|
}
|
||||||
} // --profile-laps
|
} // --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))
|
if(CommandLine::has("--profile-time", &n))
|
||||||
{
|
{
|
||||||
Log::verbose("main", "Profiling: %d seconds.", n);
|
Log::verbose("main", "Profiling: %d seconds.", n);
|
||||||
|
Loading…
Reference in New Issue
Block a user