-added einsteinx2's gamecube settings for playing gamecube banner sounds and gamecube default sound. with these you can enable/disable the gc banner sound when selecting a game.

play_banner_sound and play_default_sound in the [GAMECUBE] section of wiiflow_lite.ini
This commit is contained in:
fledge68 2018-05-30 20:45:48 +00:00
parent 469c549940
commit 33a6fdb893
4 changed files with 14 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -228,6 +228,8 @@ bool CMenu::init()
if(strncmp(gc_games_dir, "%s:/", 4) != 0)
strcpy(gc_games_dir, DF_GC_GAMES_DIR);
gprintf("GameCube Games Directory: %s\n", gc_games_dir);
m_gc_play_banner_sound = m_cfg.getBool(GC_DOMAIN, "play_banner_sound", true);
m_gc_play_default_sound = m_cfg.getBool(GC_DOMAIN, "play_default_sound", true);
/* Load cIOS Map */
_installed_cios.clear();

View File

@ -145,6 +145,10 @@ private:
bool m_emuSaveNand;
s32 m_partRequest;
/* GC sound stuff */
bool m_gc_play_banner_sound;
bool m_gc_play_default_sound;
/* Explorer stuff */
bool m_txt_view;
const char *m_txt_path;

View File

@ -2069,10 +2069,13 @@ void * CMenu::_gameSoundThread(void *obj)
else
m_banner.DeleteBanner();
GC_Disc_Reader.clear();
if(m->m_gc_play_default_sound)
{
//get wiiflow gc ogg sound to play with banner
m->m_gameSound.Load(gc_ogg, gc_ogg_size, false);
if(m->m_gameSound.IsLoaded())
m->m_gamesound_changed = true;
}
m->m_soundThrdBusy = false;
return NULL;
}
@ -2127,7 +2130,7 @@ void * CMenu::_gameSoundThread(void *obj)
u8 *soundBin = CurrentBanner.GetFile("sound.bin", &sndSize);
CurrentBanner.ClearBanner();
if(soundBin != NULL)
if(soundBin != NULL && (GameHdr->type != TYPE_GC_GAME || m->m_gc_play_banner_sound))
{
if(memcmp(&((IMD5Header *)soundBin)->fcc, "IMD5", 4) == 0)
{