Fix csnd corrupting dsp audio driver on failure, add 3dsx/smdh to gitignore

This commit is contained in:
meepingsnesroms 2017-12-26 05:31:51 -08:00
parent c978b53214
commit f8b9c8fa6d
2 changed files with 4 additions and 7 deletions

2
.gitignore vendored
View File

@ -70,6 +70,8 @@ wiiu/wut/elf2rpl/elf2rpl
# 3ds
/.lst
*.3dsx
*.smdh
# Ctags
/tags

View File

@ -358,16 +358,11 @@ static void frontend_ctr_init(void *data)
}
osSetSpeedupEnable(true);
audio_driver_t* dsp_audio_driver = &audio_ctr_dsp;
if(csndInit() != 0)
{
dsp_audio_driver = &audio_ctr_csnd;
audio_ctr_csnd = audio_ctr_dsp;
audio_ctr_dsp = audio_null;
}
audio_ctr_csnd = audio_null;
ctr_check_dspfirm();
if(ndspInit() != 0)
*dsp_audio_driver = audio_null;
audio_ctr_dsp = audio_null;
cfguInit();
#endif
}