Okay so Glenn decided to revert some Frieza code. I'm not going to remove everything Glenn did, as there was some useful code.

However, the ones I agreed with were:

75d5b63 "if a Noteskin fails to be loaded by the time the notes need to be displayed, attempt to force the default theme on and throw errors in to the log rather than crashing SM."
Glenn: There was no indication in the commit of when this was actually happening; this is unnecessary logic that will do nothing but hide bugs.
AJ: Based on some of the other code I've seen in the StepMania codebase, I'd say having this code in GetMetric isn't a good idea. There's an assert for checking if the noteskin isn't empty. That should suffice.

e27e971 "Adds metric options to flash the lifebar when a note is hit"
AJ: There are many possible ways of doing this without having to add a new metric.
The most extreme example is to code your own life bar and mess with JudgmentMessageCommand.
I'm not sure if StreamDisplay would respond to the message or not, but there are multiple ways of getting at the Stream. (ultralight, to be released, contains an example)
This commit is contained in:
AJ Kelly
2010-02-10 21:23:28 -06:00
parent 0f63c3d957
commit 7f19f8310a
3 changed files with 0 additions and 26 deletions
-15
View File
@@ -242,21 +242,6 @@ void NoteSkinManager::GetAllNoteSkinNamesForGame( const Game *pGame, vector<RStr
RString NoteSkinManager::GetMetric( const RString &sButtonName, const RString &sValue )
{
// if no noteskin has loaded by now, something seriously went wrong!
if( m_sCurrentNoteSkin.empty() )
{
// try selecting the default noteskin
if( DoesNoteSkinExist( "default" ) )
{
m_sCurrentNoteSkin = "default";
LOG->Warn("A noteskin was not loaded before NoteSkinManager::GetMetric() so the default noteskin was forced.");
}
else
{
LOG->Warn("A noteskin was not loaded before NoteSkinManager::GetMetric() and none could be loaded.");
}
}
ASSERT( !m_sCurrentNoteSkin.empty() );
RString sNoteSkinName = m_sCurrentNoteSkin;
sNoteSkinName.MakeLower();