From c91c1150997c02be4bb8f9fbcfd9b23f27747c82 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 19 May 2011 18:14:10 -0400 Subject: [PATCH] Attempt to not load ini/xml changes. Directory reading is next... not sure the best place for it. --- src/NotesLoaderSM.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/NotesLoaderSM.cpp b/src/NotesLoaderSM.cpp index 9237885259..ec846aa2cc 100644 --- a/src/NotesLoaderSM.cpp +++ b/src/NotesLoaderSM.cpp @@ -493,8 +493,16 @@ bool SMLoader::LoadFromBGChangesString( BackgroundChange &change, const RString change.m_sTransition = aBGChangeValues[8]; // fall through case 8: + { + RString tmp = aBGChangeValues[7]; + tmp.MakeLower(); + if( tmp.find(".ini") != string::npos || tmp.find(".xml") != string::npos ) + { + return false; + } change.m_def.m_sFile2 = aBGChangeValues[7]; // fall through + } case 7: change.m_def.m_sEffect = aBGChangeValues[6]; // fall through @@ -528,8 +536,16 @@ bool SMLoader::LoadFromBGChangesString( BackgroundChange &change, const RString change.m_fRate = StringToFloat( aBGChangeValues[2] ); // fall through case 2: + { + RString tmp = aBGChangeValues[1]; + tmp.MakeLower(); + if( tmp.find(".ini") != string::npos || tmp.find(".xml") != string::npos ) + { + return false; + } change.m_def.m_sFile1 = aBGChangeValues[1]; // fall through + } case 1: change.m_fStartBeat = StringToFloat( aBGChangeValues[0] ); // fall through