[notesloader] More abstracting.

This commit is contained in:
Jason Felds
2011-06-09 21:41:56 -04:00
parent 1ec548442d
commit bb642827a8
6 changed files with 13 additions and 54 deletions
+3 -6
View File
@@ -13,9 +13,6 @@
#include "Attack.h"
#include "PrefsManager.h"
/** @brief The maximum file size for edits. */
const int MAX_EDIT_STEPS_SIZE_BYTES = 60*1024; // 60KB
bool SMLoader::LoadFromDir( const RString &sPath, Song &out )
{
vector<RString> aFileNames;
@@ -23,13 +20,13 @@ bool SMLoader::LoadFromDir( const RString &sPath, Song &out )
if( aFileNames.size() > 1 )
{
LOG->UserLog( "Song", sPath, "has more than one SM file. There can be only one (unless you are using TougaKiryuu's AnimeMix files somehow, which assume a different version of StepMania)!" );
// Need to break this up first.
RString tmp = "Song " + sPath + " has more than one";
LOG->UserLog(tmp, this->GetFileExtension(), "file. There can only be one!");
return false;
}
ASSERT( aFileNames.size() == 1 );
//ASSERT( aFileNames.size() >= 1 );
return LoadFromSimfile( sPath + aFileNames[0], out );
}