Autosave completed but not tested.

This commit is contained in:
Kyzentun
2015-02-27 10:36:17 -07:00
parent 064aead73c
commit ddb1683bb7
12 changed files with 127 additions and 30 deletions
+7
View File
@@ -31,6 +31,7 @@ static const char *EditMenuActionNames[] = {
"Delete",
"Create",
"Practice",
"LoadAutosave",
};
XToString( EditMenuAction );
XToLocalizedString( EditMenuAction );
@@ -659,6 +660,12 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
m_StepsDisplaySource.SetVisible( !(bHideMeter || GetSelectedSteps()) );
m_Actions.clear();
// Stick autosave in the list first so that people will see it. -Kyz
Song* cur_song= GetSelectedSong();
if(cur_song != NULL && cur_song->HasAutosaveFile() && !cur_song->WasLoadedFromAutosave())
{
m_Actions.push_back(EditMenuAction_LoadAutosave);
}
if( GetSelectedSteps() )
{
switch( mode )