From 951ce82dbf17783eade135df9c6b0192a4491bf9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 26 Mar 2004 01:48:47 +0000 Subject: [PATCH] fix note skin installation wiping too much --- stepmania/src/smpackage/SMPackageUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/smpackage/SMPackageUtil.cpp b/stepmania/src/smpackage/SMPackageUtil.cpp index 43c5e16128..46dc160270 100644 --- a/stepmania/src/smpackage/SMPackageUtil.cpp +++ b/stepmania/src/smpackage/SMPackageUtil.cpp @@ -90,7 +90,7 @@ bool SetPref( CString name, bool val ) } /* Get a package directory. For most paths, this is the first two components. For - * songs, this is the first three. */ + * songs and note skins, this is the first three. */ CString GetPackageDirectory(CString path) { if( path.Find("CVS") != -1 ) @@ -100,7 +100,7 @@ CString GetPackageDirectory(CString path) split( path, "\\", Parts ); unsigned NumParts = 2; - if( !Parts[0].CompareNoCase("songs") ) + if( !Parts[0].CompareNoCase("Songs") || !Parts[0].CompareNoCase("NoteSkins") ) NumParts = 3; if( Parts.size() < NumParts ) return "";