Missed more of these darned spots.

Gah, losing my touch.
This commit is contained in:
Jason Felds
2013-04-18 22:56:57 -04:00
parent de396800d8
commit bbb57b1600
4 changed files with 3 additions and 51 deletions
-4
View File
@@ -17,10 +17,6 @@ const int MIN_METER = 1;
*/ */
const int MAX_METER = 35; const int MAX_METER = 35;
/** @brief The maximum number of credits for coin mode. */
const int MAX_NUM_CREDITS = 20;
/** /**
* @brief The various radar categories available. * @brief The various radar categories available.
* *
-16
View File
@@ -38,7 +38,6 @@ const RString EDIT_COURSES_SUBDIR = "EditCourses/";
//const RString UPLOAD_SUBDIR = "Upload/"; //const RString UPLOAD_SUBDIR = "Upload/";
const RString RIVAL_SUBDIR = "Rivals/"; const RString RIVAL_SUBDIR = "Rivals/";
ThemeMetric<bool> SHOW_COIN_DATA( "Profile", "ShowCoinData" );
static Preference<bool> g_bProfileDataCompress( "ProfileDataCompress", false ); static Preference<bool> g_bProfileDataCompress( "ProfileDataCompress", false );
static ThemeMetric<RString> UNLOCK_AUTH_STRING( "Profile", "UnlockAuthString" ); static ThemeMetric<RString> UNLOCK_AUTH_STRING( "Profile", "UnlockAuthString" );
#define GUID_SIZE_BYTES 8 #define GUID_SIZE_BYTES 8
@@ -948,8 +947,6 @@ XNode *Profile::SaveStatsXmlCreateNode() const
xml->AppendChild( SaveCategoryScoresCreateNode() ); xml->AppendChild( SaveCategoryScoresCreateNode() );
xml->AppendChild( SaveScreenshotDataCreateNode() ); xml->AppendChild( SaveScreenshotDataCreateNode() );
xml->AppendChild( SaveCalorieDataCreateNode() ); xml->AppendChild( SaveCalorieDataCreateNode() );
if( SHOW_COIN_DATA.GetValue() && IsMachine() )
xml->AppendChild( SaveCoinDataCreateNode() );
return xml; return xml;
} }
@@ -1838,19 +1835,6 @@ bool Profile::IsMachine() const
return this == PROFILEMAN->GetMachineProfile(); return this == PROFILEMAN->GetMachineProfile();
} }
XNode* Profile::SaveCoinDataCreateNode() const
{
CHECKPOINT;
const Profile* pProfile = this;
ASSERT( pProfile != NULL );
XNode* pNode = new XNode( "CoinData" );
return pNode;
}
void Profile::MoveBackupToDir( RString sFromDir, RString sToDir ) void Profile::MoveBackupToDir( RString sFromDir, RString sToDir )
{ {
if( FILEMAN->IsAFile(sFromDir + STATS_XML) && if( FILEMAN->IsAFile(sFromDir + STATS_XML) &&
-2
View File
@@ -369,8 +369,6 @@ public:
XNode* SaveScreenshotDataCreateNode() const; XNode* SaveScreenshotDataCreateNode() const;
XNode* SaveCalorieDataCreateNode() const; XNode* SaveCalorieDataCreateNode() const;
XNode* SaveCoinDataCreateNode() const;
void SaveStatsWebPageToDir( RString sDir ) const; void SaveStatsWebPageToDir( RString sDir ) const;
void SaveMachinePublicKeyToDir( RString sDir ) const; void SaveMachinePublicKeyToDir( RString sDir ) const;
+3 -29
View File
@@ -383,30 +383,6 @@ static void MusicWheelSwitchSpeed( int &sel, bool ToSel, const ConfOption *pConf
MoveMap( sel, pConfOption, ToSel, mapping, ARRAYLEN(mapping) ); MoveMap( sel, pConfOption, ToSel, mapping, ARRAYLEN(mapping) );
} }
// Gameplay options
static void CoinModeNoHome( int &sel, bool ToSel, const ConfOption *pConfOption )
{
// The mapping without home is easy: subtract one to compensate for the missing CoinMode_Home
if( ToSel )
{
MovePref<CoinMode>( sel, ToSel, pConfOption );
if( sel > static_cast<int>(CoinMode_Home) )
--sel;
}
else
{
if( sel >= static_cast<int>(CoinMode_Home) )
++sel;
MovePref<CoinMode>( sel, ToSel, pConfOption );
}
}
static void CoinsPerCredit( int &sel, bool ToSel, const ConfOption *pConfOption )
{
const int mapping[] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
MoveMap( sel, pConfOption, ToSel, mapping, ARRAYLEN(mapping) );
}
static void JointPremium( int &sel, bool ToSel, const ConfOption *pConfOption ) static void JointPremium( int &sel, bool ToSel, const ConfOption *pConfOption )
{ {
const Premium mapping[] = { Premium_DoubleFor1Credit, Premium_2PlayersFor1Credit }; const Premium mapping[] = { Premium_DoubleFor1Credit, Premium_2PlayersFor1Credit };
@@ -644,8 +620,8 @@ static void InitializeConfOptions()
// a new choice in the interface into a new preference. The easiest is when // a new choice in the interface into a new preference. The easiest is when
// the interface choices are an exact mapping to the values the preference // the interface choices are an exact mapping to the values the preference
// can be. In that case, the easiest thing to do is use MovePref<bool or enum>. // can be. In that case, the easiest thing to do is use MovePref<bool or enum>.
// The next easiest case is when there is a hardcoded mapping that is not 1-1, // The next easiest case is when there is a hardcoded mapping that is not 1-1.
// such as CoinModeNoHome. In that case, you need to remap the result of // In that case, you need to remap the result of
// MovePref<enum> to the correct mapping. Harder yet is when there is a // MovePref<enum> to the correct mapping. Harder yet is when there is a
// float or a dynamic set of options, such as Language or Theme. // float or a dynamic set of options, such as Language or Theme.
// Those require individual attention. // Those require individual attention.
@@ -714,8 +690,7 @@ static void InitializeConfOptions()
// Machine options // Machine options
ADD( ConfOption( "MenuTimer", MovePref<bool>, "Off","On" ) ); ADD( ConfOption( "MenuTimer", MovePref<bool>, "Off","On" ) );
ADD( ConfOption( "CoinMode", MovePref<CoinMode>, "Home","Pay","Free Play" ) ); ADD( ConfOption( "CoinMode", MovePref<CoinMode>, "Home","Free Play" ) );
ADD( ConfOption( "CoinModeNoHome", CoinModeNoHome, "Pay","Free Play" ) );
g_ConfOptions.back().m_sPrefName = "CoinMode"; g_ConfOptions.back().m_sPrefName = "CoinMode";
ADD( ConfOption( "SongsPerPlay", SongsPerPlay, "|1","|2","|3","|4","|5" ) ); ADD( ConfOption( "SongsPerPlay", SongsPerPlay, "|1","|2","|3","|4","|5" ) );
@@ -730,7 +705,6 @@ static void InitializeConfOptions()
ADD( ConfOption( "ProgressiveStageLifebar", MovePref<int>, "Off","|1","|2","|3","|4","|5","|6","|7","|8","Insanity") ); ADD( ConfOption( "ProgressiveStageLifebar", MovePref<int>, "Off","|1","|2","|3","|4","|5","|6","|7","|8","Insanity") );
ADD( ConfOption( "ProgressiveNonstopLifebar", MovePref<int>, "Off","|1","|2","|3","|4","|5","|6","|7","|8","Insanity") ); ADD( ConfOption( "ProgressiveNonstopLifebar", MovePref<int>, "Off","|1","|2","|3","|4","|5","|6","|7","|8","Insanity") );
ADD( ConfOption( "DefaultFailType", DefaultFailType, "Immediate","ImmediateContinue","EndOfSong","Off" ) ); ADD( ConfOption( "DefaultFailType", DefaultFailType, "Immediate","ImmediateContinue","EndOfSong","Off" ) );
ADD( ConfOption( "CoinsPerCredit", CoinsPerCredit, "|1","|2","|3","|4","|5","|6","|7","|8","|9","|10","|11","|12","|13","|14","|15","|16" ) );
ADD( ConfOption( "Premium", MovePref<Premium>, "Off","Double for 1 Credit","2 Players for 1 Credit" ) ); ADD( ConfOption( "Premium", MovePref<Premium>, "Off","Double for 1 Credit","2 Players for 1 Credit" ) );
ADD( ConfOption( "JointPremium", JointPremium, "Off","2 Players for 1 Credit" ) ); ADD( ConfOption( "JointPremium", JointPremium, "Off","2 Players for 1 Credit" ) );
g_ConfOptions.back().m_sPrefName = "Premium"; g_ConfOptions.back().m_sPrefName = "Premium";