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
+13
View File
@@ -266,6 +266,18 @@ bool ScreenEditMenu::MenuStart( const InputEventPlus & )
ScreenPrompt::Prompt( SM_None, STEPS_WILL_BE_LOST.GetValue() + "\n\n" + CONTINUE_WITH_DELETE.GetValue(),
PROMPT_YES_NO, ANSWER_NO );
break;
case EditMenuAction_LoadAutosave:
if(pSong)
{
FOREACH_PlayerNumber(pn)
{
GAMESTATE->m_pCurSteps[pn].Set(NULL);
}
pSong->LoadAutosaveFile();
SONGMAN->Invalidate(pSong);
SCREENMAN->SendMessageToTopScreen( SM_RefreshSelector );
}
break;
case EditMenuAction_Create:
ASSERT( !pSteps );
{
@@ -344,6 +356,7 @@ bool ScreenEditMenu::MenuStart( const InputEventPlus & )
}
return true;
case EditMenuAction_Delete:
case EditMenuAction_LoadAutosave:
return true;
default:
FAIL_M(ssprintf("Invalid edit menu action: %i", action));