simplify
This commit is contained in:
@@ -115,9 +115,7 @@ void Course::LoadFromCRSFile( CString sPath )
|
||||
if( !msd.ReadFile(sPath) )
|
||||
RageException::Throw( "Error opening CRS file '%s'.", sPath.c_str() );
|
||||
|
||||
CString sDir, sFName, sExt;
|
||||
splitrelpath( sPath, sDir, sFName, sExt );
|
||||
sFName = sDir + sFName;
|
||||
const CString sFName = SetExtension( sPath, "" );
|
||||
|
||||
CStringArray arrayPossibleBanners;
|
||||
GetDirListing( sFName + ".png", arrayPossibleBanners, false, true );
|
||||
|
||||
@@ -101,7 +101,7 @@ bool KSFLoader::LoadFromKSFFile( const CString &sPath, Steps &out, const Song &s
|
||||
|
||||
{
|
||||
CString sDir, sFName, sExt;
|
||||
splitrelpath( sPath, sDir, sFName, sExt );
|
||||
splitpath( sPath, sDir, sFName, sExt );
|
||||
sFName.MakeLower();
|
||||
|
||||
out.SetDescription(sFName);
|
||||
|
||||
Reference in New Issue
Block a user