From fe45bb1e50a30bfa852181241ee5ac9220e35d32 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 11 Mar 2006 06:06:48 +0000 Subject: [PATCH] fix home mode edits --- stepmania/src/Steps.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index da07cbc2b6..74ebfd6fe7 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -237,9 +237,16 @@ void Steps::Compress() const return; } - if( !m_sFilename.empty() ) + if( !m_sFilename.empty() && m_LoadedFromProfile == ProfileSlot_INVALID ) { - /* We have a file on disk; clear all data in memory. */ + /* + * We have a file on disk; clear all data in memory. + * + * Data on profiles can't be accessed normally (need to mount and time-out the + * device), and when we start a game and load edits, we want to be sure that + * it'll be available if the user picks it and pulls the device. Also, + * Decompress() doesn't know how to load .edits. + */ m_pNoteData->Init(); m_bNoteDataIsFilled = false;