save memory by loading SMData from cache on demand

This commit is contained in:
Glenn Maynard
2004-07-22 21:02:07 +00:00
parent daff442724
commit bd7eaf3f6c
3 changed files with 77 additions and 11 deletions
+3
View File
@@ -36,6 +36,7 @@ public:
int GetMeter() const { return Real()->m_iMeter; }
const RadarValues& GetRadarValues() const { return Real()->m_RadarValues; }
void SetFile( CString fn );
void SetDescription(CString desc);
void SetDifficulty(Difficulty d);
void SetLoadedFromProfile( ProfileSlot slot ) { m_LoadedFromProfile = slot; }
@@ -70,6 +71,8 @@ protected:
const Steps *Real() const;
CString m_sFilename;
/* These values are pulled from the autogen source first, if there is one. */
ProfileSlot m_LoadedFromProfile; // PROFILE_SLOT_INVALID if wasn't loaded from a profile
unsigned m_uHash; // only used if m_Difficulty == DIFFICULTY_EDIT