Fix Linux compile.

This commit is contained in:
Steve Checkoway
2005-05-18 02:01:00 +00:00
parent 62c4bb2702
commit c0c82a0527
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( const CString& sPath )
CString lcPath = sPath; CString lcPath = sPath;
lcPath.MakeLower(); lcPath.MakeLower();
if( lcPath.Find("usesongbg") != -1 ) if( lcPath.find("usesongbg") != CString::npos )
{ {
const Song* pSong = GAMESTATE->m_pCurSong; const Song* pSong = GAMESTATE->m_pCurSong;
CString sSongBGPath; CString sSongBGPath;
+3 -3
View File
@@ -155,7 +155,7 @@ void Alsa9Buf::InitializeErrorHandler()
static CString DeviceName() static CString DeviceName()
{ {
if( !PREFSMAN->m_iSoundDevice.empty() ) if( !PREFSMAN->m_iSoundDevice.Get().empty() )
return PREFSMAN->m_iSoundDevice; return PREFSMAN->m_iSoundDevice;
return "hw:0"; return "hw:0";
} }
@@ -228,8 +228,8 @@ void Alsa9Buf::GetSoundCardDebugInfo()
if( card == 0 ) if( card == 0 )
LOG->Info( "No ALSA sound cards were found."); LOG->Info( "No ALSA sound cards were found.");
if( !PREFSMAN->m_iSoundDevice.empty() ) if( !PREFSMAN->m_iSoundDevice.Get().empty() )
LOG->Info( "ALSA device overridden to \"%s\"", PREFSMAN->m_iSoundDevice.c_str() ); LOG->Info( "ALSA device overridden to \"%s\"", PREFSMAN->m_iSoundDevice.Get().c_str() );
} }
Alsa9Buf::Alsa9Buf() Alsa9Buf::Alsa9Buf()