From 70e944a9597c5d56978a22835ba436b284a83252 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 2 May 2011 22:15:14 -0400 Subject: [PATCH] [sm130futures] Deal with blank lines on write. Yes, it's another cache restarter. --- src/NotesWriterSSC.cpp | 1 + src/Song.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NotesWriterSSC.cpp b/src/NotesWriterSSC.cpp index 4ad8f89ee1..7bba5c38db 100644 --- a/src/NotesWriterSSC.cpp +++ b/src/NotesWriterSSC.cpp @@ -325,6 +325,7 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa lines.push_back( song.m_vsKeysoundFile.empty() ? "#NOTES:" : "#NOTES2:" ); + TrimLeft(sNoteData); split( sNoteData, "\n", lines, true ); lines.push_back( ";" ); diff --git a/src/Song.cpp b/src/Song.cpp index fc2e172238..23f68f2891 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -41,7 +41,7 @@ * @brief The internal version of the cache for StepMania. * * Increment this value to invalidate the current cache. */ -const int FILE_CACHE_VERSION = 169; +const int FILE_CACHE_VERSION = 170; /** @brief How long does a song sample last by default? */ const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;