Added a #GROOVESTATSHASHVERSION tag and CURRENT_GROOVE_STATS_HASH_VERSION constant

This commit is contained in:
Michael Votaw
2025-03-23 01:26:45 -07:00
committed by teejusb
parent c845205de5
commit 3eab66808b
4 changed files with 40 additions and 2 deletions
+12 -1
View File
@@ -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()
{