Skip to content

Commit b352f61

Browse files
authored
Merge pull request #15215 from ANR2ME/adhocctl
[Adhocctl] Fix Tekken 5 Dark Resurrection Multiplayer
2 parents be79161 + 69ec6b1 commit b352f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/HLE/sceNetAdhoc.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,6 @@ u32 NetAdhocctl_Disconnect() {
23672367
// Library initialized
23682368
if (netAdhocctlInited) {
23692369
int iResult, error;
2370-
int us = adhocDefaultDelay * 3;
23712370
hleEatMicro(1000);
23722371

23732372
if (isAdhocctlBusy && CoreTiming::IsScheduled(adhocctlNotifyEvent)) {
@@ -2403,7 +2402,7 @@ u32 NetAdhocctl_Disconnect() {
24032402
}
24042403
else if (friendFinderRunning) {
24052404
AdhocctlRequest req = { OPCODE_DISCONNECT, {0} };
2406-
WaitBlockingAdhocctlSocket(req, us, "adhocctl disconnect");
2405+
WaitBlockingAdhocctlSocket(req, 0, "adhocctl disconnect");
24072406
}
24082407
else {
24092408
// Set Disconnected State
@@ -5592,6 +5591,7 @@ void __NetTriggerCallbacks()
55925591
break;
55935592
case ADHOCCTL_EVENT_DISCONNECT:
55945593
newState = ADHOCCTL_STATE_DISCONNECTED;
5594+
delayus = adhocDefaultDelay; // Tekken 5 expects AdhocctlDisconnect to be done within ~17ms (a frame?)
55955595
break;
55965596
case ADHOCCTL_EVENT_GAME:
55975597
{

0 commit comments

Comments
 (0)