From 63ed73e58efef034fbee3c50b82a9438f2fca4cc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 23 Jan 2003 04:42:51 +0000 Subject: [PATCH] split on /s --- stepmania/src/Song.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 4f6ed0f9bb..406b5543b1 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -291,16 +291,17 @@ bool Song::LoadFromSongDir( CString sDir ) { LOG->Trace( "Song::LoadFromSongDir(%s)", sDir.GetString() ); + sDir.Replace("\\", "/"); // make sure there is a trailing '\\' at the end of sDir - if( sDir.Right(1) != "\\" ) - sDir += "\\"; + if( sDir.Right(1) != "/" ) + sDir += "/"; // save song dir m_sSongDir = sDir; // save group name CStringArray sDirectoryParts; - split( m_sSongDir, "\\", sDirectoryParts, false ); + split( m_sSongDir, "/", sDirectoryParts, false ); m_sGroupName = sDirectoryParts[sDirectoryParts.size()-3]; // second from last item //