New metric: SongsNotAdditional.

Set this to false to have AdditionalSongs be valid for
unlocking purposes.
This commit is contained in:
Jason Felds
2011-06-26 16:14:50 -07:00
parent f706783eb2
commit b026159a27
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -13,6 +13,9 @@ StepMania 5.0 Preview 2 | 201106??
* [UnlockManager] New metric: AutoLockEditSteps. Use this to hide bonus charts * [UnlockManager] New metric: AutoLockEditSteps. Use this to hide bonus charts
until the Expert steps are beaten. No guarantee that this works with no until the Expert steps are beaten. No guarantee that this works with no
challenge steps in the song. [Wolfman2000] challenge steps in the song. [Wolfman2000]
* [UnlockManager] New metric: SongsNotAdditional. Set to true to keep the
default behavior, false to have the AdditionalSongs folder contain
unlockable material. This is set to true to start. [Wolfman2000]
2011/06/24 2011/06/24
---------- ----------
+1
View File
@@ -125,6 +125,7 @@ ExtraColor=color("#ff0000") -- red
# Unlock specific things. # Unlock specific things.
AutoLockChallengeSteps=false AutoLockChallengeSteps=false
AutoLockEditSteps=false AutoLockEditSteps=false
SongsNotAdditional=true
UnlockNames="" UnlockNames=""
# useful commands: # useful commands:
+3 -2
View File
@@ -26,6 +26,7 @@ UnlockManager* UNLOCKMAN = NULL; // global and accessable from anywhere in our p
static ThemeMetric<bool> AUTO_LOCK_CHALLENGE_STEPS( "UnlockManager", "AutoLockChallengeSteps" ); static ThemeMetric<bool> AUTO_LOCK_CHALLENGE_STEPS( "UnlockManager", "AutoLockChallengeSteps" );
static ThemeMetric<bool> AUTO_LOCK_EDIT_STEPS( "UnlockManager", "AutoLockEditSteps" ); static ThemeMetric<bool> AUTO_LOCK_EDIT_STEPS( "UnlockManager", "AutoLockEditSteps" );
static ThemeMetric<bool> SONGS_NOT_ADDITIONAL( "UnlockManager", "SongsNotAdditional" );
static const char *UnlockRequirementNames[] = static const char *UnlockRequirementNames[] =
{ {
@@ -520,7 +521,7 @@ void UnlockManager::Load()
if( SongUtil::GetOneSteps(*s, StepsType_Invalid, Difficulty_Challenge) == NULL ) if( SongUtil::GetOneSteps(*s, StepsType_Invalid, Difficulty_Challenge) == NULL )
continue; continue;
if( SONGMAN->WasLoadedFromAdditionalSongs(*s) ) if( SONGS_NOT_ADDITIONAL && SONGMAN->WasLoadedFromAdditionalSongs(*s) )
continue; continue;
UnlockEntry ue; UnlockEntry ue;
@@ -546,7 +547,7 @@ void UnlockManager::Load()
continue; continue;
// don't add additional songs. // don't add additional songs.
if (SONGMAN->WasLoadedFromAdditionalSongs(*s)) if (SONGS_NOT_ADDITIONAL && SONGMAN->WasLoadedFromAdditionalSongs(*s))
continue; continue;
UnlockEntry ue; UnlockEntry ue;