Added a #GROOVESTATSHASHVERSION tag and CURRENT_GROOVE_STATS_HASH_VERSION constant
This commit is contained in:
+12
-1
@@ -783,9 +783,16 @@ const RString Steps::GetGrooveStatsHash() const
|
||||
return GrooveStatsHash;
|
||||
}
|
||||
|
||||
int Steps::GetGrooveStatsHashVersion() const
|
||||
{
|
||||
return GrooveStatsHashVersion;
|
||||
}
|
||||
|
||||
void Steps::CalculateGrooveStatsHash(bool forceRecalculate)
|
||||
{
|
||||
if (!forceRecalculate && m_bIsCachedGrooveStatsHashJustLoaded == true)
|
||||
if (!forceRecalculate
|
||||
&& GrooveStatsHashVersion == CURRENT_GROOVE_STATS_HASH_VERSION
|
||||
&& m_bIsCachedGrooveStatsHashJustLoaded == true)
|
||||
{
|
||||
m_bIsCachedGrooveStatsHashJustLoaded = false;
|
||||
return;
|
||||
@@ -912,6 +919,10 @@ void Steps::SetCachedGrooveStatsHash(const RString key)
|
||||
m_bIsCachedGrooveStatsHashJustLoaded = true;
|
||||
}
|
||||
|
||||
void Steps::SetCachedGrooveStatsHashVersion(int version)
|
||||
{
|
||||
GrooveStatsHashVersion = version;
|
||||
}
|
||||
|
||||
RString Steps::GenerateChartKey()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user