Merge pull request #18435 from anr2me/adhocctl

An attempt to fix Tekken 6 stuck issue when exiting Lobby
This commit is contained in:
Henrik Rydgård 2023-11-20 14:41:40 +01:00 committed by GitHub
commit 3d508ef282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2472,7 +2472,8 @@ u32 NetAdhocctl_Disconnect() {
// Library initialized
if (netAdhocctlInited) {
int iResult, error;
hleEatMicro(1000);
// We might need to have at least 16ms (1 frame?) delay before the game calls the next Adhocctl syscall for Tekken 6 not to stuck when exiting Lobby
hleEatMicro(16667);
if (isAdhocctlBusy && CoreTiming::IsScheduled(adhocctlNotifyEvent)) {
return ERROR_NET_ADHOCCTL_BUSY;