Remove #SELECTABLE:ROULETTE.
This commit is contained in:
@@ -355,8 +355,6 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache
|
||||
out.m_SelectionDisplay = out.SHOW_ALWAYS;
|
||||
else if(!stricmp(sParams[1],"NO"))
|
||||
out.m_SelectionDisplay = out.SHOW_NEVER;
|
||||
else if(!stricmp(sParams[1],"ROULETTE"))
|
||||
out.m_SelectionDisplay = out.SHOW_ROULETTE;
|
||||
else
|
||||
LOG->UserLog( "Song file", sPath, "has an unknown #SELECTABLE value, \"%s\"; ignored.", sParams[1].c_str() );
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
|
||||
default: ASSERT(0); /* fallthrough */
|
||||
case Song::SHOW_ALWAYS: f.Write( "YES" ); break;
|
||||
case Song::SHOW_NEVER: f.Write( "NO" ); break;
|
||||
case Song::SHOW_ROULETTE: f.Write( "ROULETTE" ); break;
|
||||
}
|
||||
f.PutLine( ";" );
|
||||
|
||||
|
||||
@@ -1027,7 +1027,6 @@ Song::SelectionDisplay Song::GetDisplayed() const
|
||||
}
|
||||
bool Song::NormallyDisplayed() const { return GetDisplayed() == SHOW_ALWAYS; }
|
||||
bool Song::NeverDisplayed() const { return GetDisplayed() == SHOW_NEVER; }
|
||||
bool Song::RouletteDisplayed() const { if(IsTutorial()) return false; return GetDisplayed() != SHOW_NEVER; }
|
||||
bool Song::ShowInDemonstrationAndRanking() const { return !IsTutorial() && NormallyDisplayed(); }
|
||||
|
||||
|
||||
|
||||
@@ -45,9 +45,8 @@ public:
|
||||
/* Set when this song should be displayed in the music wheel: */
|
||||
enum SelectionDisplay
|
||||
{
|
||||
SHOW_ALWAYS, /* all the time */
|
||||
SHOW_ROULETTE, /* only when rouletting */
|
||||
SHOW_NEVER /* never (unless song hiding is turned off) */
|
||||
SHOW_ALWAYS, /* always */
|
||||
SHOW_NEVER /* never (unless song hiding is turned off) */
|
||||
} m_SelectionDisplay;
|
||||
|
||||
Song();
|
||||
@@ -193,7 +192,6 @@ public:
|
||||
SelectionDisplay GetDisplayed() const;
|
||||
bool NormallyDisplayed() const;
|
||||
bool NeverDisplayed() const;
|
||||
bool RouletteDisplayed() const;
|
||||
bool ShowInDemonstrationAndRanking() const;
|
||||
|
||||
void AddSteps( Steps* pSteps ); // we are responsible for deleting the memory pointed to by pSteps!
|
||||
|
||||
Reference in New Issue
Block a user