NewUI: Don't init audio if sound is disabled. And remove some stray newlines.

This commit is contained in:
The Dax 2013-08-14 08:55:31 -04:00
parent 5b2483ee73
commit 75f03b4d8a
2 changed files with 3 additions and 4 deletions

View file

@ -93,8 +93,6 @@ bool IsOnSeparateCPUThread() {
}
}
bool CPU_NextState(CPUThreadState from, CPUThreadState to) {
if (cpuThreadState == from) {
cpuThreadState = to;

View file

@ -331,8 +331,9 @@ void GameSettingsScreen::update(InputState &input) {
UI::EventReturn GameSettingsScreen::OnBack(UI::EventParams &e) {
screenManager()->finishDialog(this, DR_OK);
if(PSP_IsInited() && !IsAudioInitialised()) {
Audio_Init();
if(g_Config.bEnableSound) {
if(PSP_IsInited() && !IsAudioInitialised())
Audio_Init();
}
return UI::EVENT_DONE;