allow loading alternate codes
This commit is contained in:
@@ -176,13 +176,15 @@ bool CodeDetector::EnteredCode( GameController controller, Code code )
|
||||
}
|
||||
|
||||
|
||||
void CodeDetector::RefreshCacheItems()
|
||||
void CodeDetector::RefreshCacheItems( CString sClass )
|
||||
{
|
||||
if( sClass == "" )
|
||||
sClass = "CodeDetector";
|
||||
for( int i=0; i<NUM_CODES; i++ )
|
||||
{
|
||||
CodeItem& item = g_CodeItems[i];
|
||||
const CString sCodeName = g_sCodeNames[i];
|
||||
const CString sButtonsNames = THEME->GetMetric("CodeDetector",sCodeName);
|
||||
const CString sButtonsNames = THEME->GetMetric(sClass,sCodeName);
|
||||
|
||||
item.Load( sButtonsNames );
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
NUM_CODES // leave this at the end
|
||||
};
|
||||
|
||||
static void RefreshCacheItems(); // call this before checking codes, but call infrequently
|
||||
static void RefreshCacheItems( CString sClass="" ); // call this before checking codes, but call infrequently
|
||||
static bool EnteredEasierDifficulty( GameController controller );
|
||||
static bool EnteredHarderDifficulty( GameController controller );
|
||||
static bool EnteredNextSort( GameController controller );
|
||||
|
||||
Reference in New Issue
Block a user