persist combo between games

This commit is contained in:
Chris Danford
2003-12-08 04:39:29 +00:00
parent eac836cc40
commit f8c856209d
4 changed files with 25 additions and 2 deletions
+2
View File
@@ -252,6 +252,7 @@ bool Profile::LoadFromIni( CString sIniPath )
ini.GetValue( "Profile", "TotalPlays", m_iTotalPlays );
ini.GetValue( "Profile", "TotalPlaySeconds", m_iTotalPlaySeconds );
ini.GetValue( "Profile", "TotalGameplaySeconds", m_iTotalGameplaySeconds );
ini.GetValue( "Profile", "CurrentCombo", m_iCurrentCombo );
return true;
}
@@ -265,6 +266,7 @@ bool Profile::SaveToIni( CString sIniPath )
ini.SetValue( "Profile", "TotalPlays", m_iTotalPlays );
ini.SetValue( "Profile", "TotalPlaySeconds", m_iTotalPlaySeconds );
ini.SetValue( "Profile", "TotalGameplaySeconds", m_iTotalGameplaySeconds );
ini.SetValue( "Profile", "CurrentCombo", m_iCurrentCombo );
ini.WriteFile();
return true;
}