mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 21:54:15 +01:00
-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:
parent
469c549940
commit
33a6fdb893
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
@ -228,6 +228,8 @@ bool CMenu::init()
|
|||||||
if(strncmp(gc_games_dir, "%s:/", 4) != 0)
|
if(strncmp(gc_games_dir, "%s:/", 4) != 0)
|
||||||
strcpy(gc_games_dir, DF_GC_GAMES_DIR);
|
strcpy(gc_games_dir, DF_GC_GAMES_DIR);
|
||||||
gprintf("GameCube Games Directory: %s\n", 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 */
|
/* Load cIOS Map */
|
||||||
_installed_cios.clear();
|
_installed_cios.clear();
|
||||||
|
@ -145,6 +145,10 @@ private:
|
|||||||
bool m_emuSaveNand;
|
bool m_emuSaveNand;
|
||||||
s32 m_partRequest;
|
s32 m_partRequest;
|
||||||
|
|
||||||
|
/* GC sound stuff */
|
||||||
|
bool m_gc_play_banner_sound;
|
||||||
|
bool m_gc_play_default_sound;
|
||||||
|
|
||||||
/* Explorer stuff */
|
/* Explorer stuff */
|
||||||
bool m_txt_view;
|
bool m_txt_view;
|
||||||
const char *m_txt_path;
|
const char *m_txt_path;
|
||||||
|
@ -2069,10 +2069,13 @@ void * CMenu::_gameSoundThread(void *obj)
|
|||||||
else
|
else
|
||||||
m_banner.DeleteBanner();
|
m_banner.DeleteBanner();
|
||||||
GC_Disc_Reader.clear();
|
GC_Disc_Reader.clear();
|
||||||
|
if(m->m_gc_play_default_sound)
|
||||||
|
{
|
||||||
//get wiiflow gc ogg sound to play with banner
|
//get wiiflow gc ogg sound to play with banner
|
||||||
m->m_gameSound.Load(gc_ogg, gc_ogg_size, false);
|
m->m_gameSound.Load(gc_ogg, gc_ogg_size, false);
|
||||||
if(m->m_gameSound.IsLoaded())
|
if(m->m_gameSound.IsLoaded())
|
||||||
m->m_gamesound_changed = true;
|
m->m_gamesound_changed = true;
|
||||||
|
}
|
||||||
m->m_soundThrdBusy = false;
|
m->m_soundThrdBusy = false;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -2127,7 +2130,7 @@ void * CMenu::_gameSoundThread(void *obj)
|
|||||||
u8 *soundBin = CurrentBanner.GetFile("sound.bin", &sndSize);
|
u8 *soundBin = CurrentBanner.GetFile("sound.bin", &sndSize);
|
||||||
CurrentBanner.ClearBanner();
|
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)
|
if(memcmp(&((IMD5Header *)soundBin)->fcc, "IMD5", 4) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user