From f2c5d01e8fadfe190ea50d8a78afaa016ede646e Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Wed, 16 Jul 2003 12:58:02 +0000 Subject: [PATCH] basic support for scrolling song list --- stepmania/src/UnlockSystem.cpp | 12 ++++++++++-- stepmania/src/UnlockSystem.h | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stepmania/src/UnlockSystem.cpp b/stepmania/src/UnlockSystem.cpp index 32aa5cdfbf..97bb7a246c 100644 --- a/stepmania/src/UnlockSystem.cpp +++ b/stepmania/src/UnlockSystem.cpp @@ -38,6 +38,7 @@ UnlockSystem::UnlockSystem() ToastyPoints = 0; StagesCleared = 0; RouletteSeeds = "1"; + ReadValues("Data/MemCard.ini"); // in case its ever accessed, // we want the values to be available WriteValues("Data/MemCard.ini"); // create if it does not exist @@ -173,6 +174,8 @@ SongEntry::SongEntry() m_fToastysSeen = 0; m_iRouletteSeed = 0; + ActualSong = NULL; + isLocked = true; isCourse = false; } @@ -241,7 +244,7 @@ bool UnlockSystem::LoadFromDATFile( CString sPath ) } int MaxRouletteSlot = 0; - unsigned i; + unsigned i, j; for( i=0; iFindSong( "", current.m_sSongName ); + m_SongEntries.push_back(current); } @@ -315,6 +321,8 @@ bool UnlockSystem::LoadFromDATFile( CString sPath ) if (!m_SongEntries[i].isLocked) tmp = "un"; LOG->Trace( "UnlockSystem Entry %s", m_SongEntries[i].m_sSongName.c_str() ); + if (m_SongEntries[i].ActualSong != NULL) + LOG->Trace( " Translit %s", m_SongEntries[i].ActualSong->GetDisplayMainTitle().c_str() ); LOG->Trace( " AP %f", m_SongEntries[i].m_fArcadePointsRequired ); LOG->Trace( " DP %f", m_SongEntries[i].m_fDancePointsRequired ); LOG->Trace( " SP %f", m_SongEntries[i].m_fSongPointsRequired ); diff --git a/stepmania/src/UnlockSystem.h b/stepmania/src/UnlockSystem.h index de5ca503e2..697cee2b50 100644 --- a/stepmania/src/UnlockSystem.h +++ b/stepmania/src/UnlockSystem.h @@ -26,6 +26,8 @@ struct SongEntry song folders are named differantly, song names tend to be the same in the file.*/ + Song* ActualSong; // pointer to actual song + float m_fDancePointsRequired; // Ways to unlock/lock songs. float m_fArcadePointsRequired; float m_fSongPointsRequired;