mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
NewUI: Don't init audio if sound is disabled. And remove some stray newlines.
This commit is contained in:
parent
5b2483ee73
commit
75f03b4d8a
2 changed files with 3 additions and 4 deletions
|
@ -93,8 +93,6 @@ bool IsOnSeparateCPUThread() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool CPU_NextState(CPUThreadState from, CPUThreadState to) {
|
||||
if (cpuThreadState == from) {
|
||||
cpuThreadState = to;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue