mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Don't restart release on double keyoff.
Fixes Kingdom Hearts bug, #2066.
This commit is contained in:
1 parent
1d35cc46a4
commit
ea5996bf02
1 file changed
+2
-2
+2
-2
@@ -261,7 +261,7 @@ u32 sceSasSetKeyOn(u32 core, int voiceNum) {
|
||||
return ERROR_SAS_INVALID_VOICE;
|
||||
}
|
||||
|
||||
if (sas->voices[voiceNum].paused) {
|
||||
if (sas->voices[voiceNum].paused || sas->voices[voiceNum].on) {
|
||||
return ERROR_SAS_VOICE_PAUSED;
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ u32 sceSasSetKeyOff(u32 core, int voiceNum) {
|
||||
} else {
|
||||
DEBUG_LOG(HLE,"sceSasSetKeyOff(%08x, %i)", core, voiceNum);
|
||||
|
||||
if (sas->voices[voiceNum].paused) {
|
||||
if (sas->voices[voiceNum].paused || !sas->voices[voiceNum].on) {
|
||||
return ERROR_SAS_VOICE_PAUSED;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user