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
12
src/main.cpp
12
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"
|
||||||
@ -1235,6 +1237,16 @@ int handleCmdLine()
|
|||||||
}
|
}
|
||||||
} // --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