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