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

Attempt to fix Outrun 2006 infrastructure #19879

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Core/HLE/sceNetInet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ static int sceNetInetSetsockopt(int socket, int level, int optname, u32 optvalPt
return hleLogError(Log::sceNet, -1, "buffer size too large?");
}
break;

case PSP_NET_INET_SO_ONESBCAST:
// Seen in Outrun 2006 (account registration), assuming that the flag mapping is correct, we can't support this. So we warn-log and pretend success.
return hleLogWarning(Log::sceNet, 0, "PSP_NET_INET_SO_ONESBCAST unsupported, ignoring");

default:
break;
}
Expand Down
5 changes: 1 addition & 4 deletions Core/HLE/sceNetResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,7 @@ static int sceNetResolverCreate(u32 resolverIdPtr, u32 bufferPtr, int bufferLen)
if (Memory::IsValidRange(bufferPtr, 4) && bufferLen < 1)
return hleLogError(Log::sceNet, ERROR_NET_RESOLVER_INVALID_BUFLEN, "Invalid Buffer Length: %i", bufferLen);

if (!g_netResolverInitialized) {
// Possibly don't check this? Or auto-initialized? Outrun seems to assume it's not needed.
return hleLogError(Log::sceNet, ERROR_NET_RESOLVER_STOPPED, "Resolver Subsystem Stopped");
}
// Outrun calls this without init.

// TODO: Consider using SceUidManager instead of this 1-indexed id
// TODO: Implement ERROR_NET_RESOLVER_ID_MAX (possibly 32?)
Expand Down
13 changes: 13 additions & 0 deletions assets/infra-dns.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@
"UCES00420",
"UCUS98633"
]
},
{
"name": "Outrun 2006 - Coast 2 Coast",
"not_working_ids": [
"ULES00262",
"ULUS10064",
"ULKS46087"
],
"dns": "45.7.228.197",
"score": 1,
"revival_credits": {
"group": "OutRun2006Tweaks"
}
}
]
}
Loading