Code:
bool ZSoundEngine::OpenMusic(int nBgmIndex, MZFileSystem* pfs)
{
if( !m_bSoundEnable ) return false;
m_pfs=pfs;
if (nBgmIndex == BGMID_BATTLE) m_bBattleMusic = true;
else m_bBattleMusic = false;
char szFileName[256];
strcpy(szFileName, GetBGMFileName(nBgmIndex));
return OpenMusic(szFileName, pfs);
}
Code:
bool ZSoundEngine::OpenMusic1(int nBgmIndex)
{
if( !m_bSoundEnable ) return false;
// m_pfs=pfs;
if (nBgmIndex == BGMID_BATTLE) m_bBattleMusic = true;
else m_bBattleMusic = false;
char szFileName[256];
strcpy(szFileName, GetBGMFileName(nBgmIndex));
return OpenMusic1(szFileName);
}