Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Adhoc] Fix Teenage Mutant Ninja Turtles Multiplayer #14284

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

anr2me
Copy link
Collaborator

@anr2me anr2me commented Mar 13, 2021

Fix Teenage Mutant Ninja Turtles Multiplayer.

Apparently calling GetStatus() inside PSPNetconfDialog::Update() will cause sceUtilityNetconfUpdate to return SCE_ERROR_UTILITY_INVALID_STATUS right after Adhoc state changed to Connected state (which initiate the fade-out to finish the dialog)

// The Netconf dialog stays visible until the network reaches the state ADHOCCTL_STATE_CONNECTED.
if (state == ADHOCCTL_STATE_CONNECTED) {
	// Checking pendingStatus to make sure ChangeStatus not to continously extending the delay ticks on every call for eternity
	if (pendingStatus != SCE_UTILITY_STATUS_FINISHED) {
		StartFade(false);
		ChangeStatus(SCE_UTILITY_STATUS_FINISHED, NET_SHUTDOWN_DELAY_US);
	}

	...
}

Alternatively, changing NET_SHUTDOWN_DELAY_US from 200000 to 501000 usec or more will also works (500000 won't work), but i prefer this solution.

Alternatively, changing NET_SHUTDOWN_DELAY_US to 501000 usec or more will also works.
@anr2me
Copy link
Collaborator Author

anr2me commented Mar 13, 2021

Since this is just a small change, i'll merge this.

@anr2me anr2me merged commit 542e426 into hrydgard:master Mar 13, 2021
@hrydgard
Copy link
Owner

Ah sorry, missed it somehow.

@unknownbrackets unknownbrackets added this to the v1.12.0 milestone Mar 13, 2021
@sum2012 sum2012 mentioned this pull request Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants