Skip to content

Commit

Permalink
go back to using old cache save function and fix up calc etterna meta…
Browse files Browse the repository at this point in the history
…data
  • Loading branch information
MinaciousGrace committed Jun 5, 2017
1 parent daf3600 commit 8cb704c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ bool Song::SaveToCacheFile()
}
SONGINDEX->AddCacheIndex(m_sSongDir, GetHashForDirectory(m_sSongDir));
const RString sPath = GetCacheFilePath();
return SaveToETTFile(sPath, true);
return SaveToSSCFile(sPath, true);
}

bool Song::SaveToDWIFile()
Expand Down
9 changes: 6 additions & 3 deletions src/Steps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ void Steps::CalcEtternaMetadata() {
const vector<int>& nerv = m_pNoteData->BuildAndGetNerv();
const vector<float>& etaner = GetTimingData()->BuildAndGetEtaner(nerv);

stuffnthings = MinaSDCalc(GetNoteData().SerializeNoteData(etaner), GetNoteData().GetNumTracks(), 0.93f, 1.f, GetTimingData()->HasWarps());
if(etaner.size() > 0)
stuffnthings = MinaSDCalc(GetNoteData().SerializeNoteData(etaner), GetNoteData().GetNumTracks(), 0.93f, 1.f, GetTimingData()->HasWarps());

//if (GetNoteData().GetNumTracks() == 4 && GetTimingData()->HasWarps() == false)
//MinaCalc2(stuffnthings, GetNoteData().SerializeNoteData2(etaner), 1.f, 0.93f);
Expand All @@ -409,10 +410,12 @@ void Steps::CalcEtternaMetadata() {
for (int i = 0; i < 8; ++i)
SONGMAN->keyconversionmap.emplace(GenerateBustedChartKey(*m_pNoteData, GetTimingData(), i), ChartKey);

/*
if (GetNoteData().GetNumTracks() == 4) {
NoteDataUtil::GetETTNoteDataString(*m_pNoteData, m_sNoteDataCompressed);
m_bNoteDataIsFilled = true;
NoteDataUtil::GetETTNoteDataString(*m_pNoteData, m_sNoteDataCompressed);
m_bNoteDataIsFilled = true;
}
*/

m_pNoteData->UnsetNerv();
m_pNoteData->UnsetSerializedNoteData();
Expand Down

0 comments on commit 8cb704c

Please sign in to comment.