Get rid of inline function; doesn't need to be. Reduce dependencies.

This commit is contained in:
Glenn Maynard
2003-04-11 15:55:20 +00:00
parent 4e8eb0a96f
commit 483a305c6b
2 changed files with 16 additions and 14 deletions
+13
View File
@@ -12,6 +12,7 @@
#include "RandomSample.h"
#include "RageSound.h"
#include "RageUtil.h"
#include "RageLog.h"
@@ -29,6 +30,18 @@ RandomSample::~RandomSample()
}
bool RandomSample::Load( CString sFilePath, int iMaxToLoad )
{
CString sDir, sFName, sExt;
splitrelpath( sFilePath, sDir, sFName, sExt );
sExt.MakeLower();
if( sExt == "" ) return LoadSoundDir( sFilePath, iMaxToLoad );
else return LoadSound( sFilePath );
}
bool RandomSample::LoadSoundDir( CString sDir, int iMaxToLoad )
{
if( sDir == "" )