From a7bc1a01fe99a2ba7744d4021dbecf7f90edd33a Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 16 May 2011 18:37:20 -0400 Subject: [PATCH] [splittiming] Try using the LAST file, not first. Global timing can get funky if Crazy has lots of changes. Normal, on the other hand, is usally sane. Of course, if there are fewer files, it's a moot point. --- src/NotesLoaderKSF.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/NotesLoaderKSF.cpp b/src/NotesLoaderKSF.cpp index 3933dbbf81..385a5152fa 100644 --- a/src/NotesLoaderKSF.cpp +++ b/src/NotesLoaderKSF.cpp @@ -682,14 +682,16 @@ bool KSFLoader::LoadFromDir( const RString &sDir, Song &out ) bool bKIUCompliant = false; /* With Split Timing, there has to be a backup Song Timing in case - * anything goes wrong. Use the first file found to determine said - * timing, while also establishing whether this file respects the - * Kick It Up syntax. */ - if( !LoadGlobalData(out.GetSongDir() + arrayKSFFileNames[0], out, bKIUCompliant) ) + * anything goes wrong. As these files are kept in alphabetical + * order (hopefully), it is best to use the LAST file for timing + * purposes, for that is the "normal", or easiest difficulty. + * Usually. */ + unsigned files = arrayKSFFileNames.size(); + if( !LoadGlobalData(out.GetSongDir() + arrayKSFFileNames[files - 1], out, bKIUCompliant) ) return false; // load the Steps from the rest of the KSF files - for( unsigned i=0; i