From 3000786b0f372ff4dca2665da508a1a0c92dbfa5 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 16 Mar 2011 23:31:06 -0400 Subject: [PATCH] Force created charts to be saved for keeping. I know I've uncommented the troublesome code, but perhaps a new technique is needed here. --- src/ScreenEdit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 8746e79e24..1545c470dd 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -800,7 +800,7 @@ void ScreenEdit::Init() m_bHasUndo = false; m_Undo.SetNumTracks( m_NoteDataEdit.GetNumTracks() ); - m_bDirty = false; + m_bDirty = m_NoteDataEdit.IsEmpty(); // require the usage of saving if empty. m_Player->Init( "Player", GAMESTATE->m_pPlayerState[PLAYER_1], NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL ); m_Player->CacheAllUsedNoteSkins(); @@ -2853,7 +2853,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) /* FIXME: This code causes all the steps to be deleted if you quit * without saving. However, without this code, any new steps will get * saved on quit. -aj */ - /* + Song *pSong = GAMESTATE->m_pCurSong; const vector &apSteps = pSong->GetAllSteps(); vector apToDelete; @@ -2872,7 +2872,7 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) if( GAMESTATE->m_pCurSteps[PLAYER_1].Get() == pSteps ) GAMESTATE->m_pCurSteps[PLAYER_1].Set( NULL ); } - */ + m_Out.StartTransitioning( SM_GoToNextScreen ); }