Skip to content

Commit

Permalink
Move the hardcoded domains from sceNetResolver.cpp to the json.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 20, 2025
1 parent c206cc6 commit 6b7dc6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Core/HLE/sceNetResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ static std::mutex g_netResolversLock; // Do we really need this?
static bool g_netResolverInitialized = true;

static int sceNetResolverInit() {
// TODO: Move this to infra-jns.config! This isn't ok.
// However obviously don't remove the mHostToAlias mechanism.
g_Config.mHostToAlias["socomftb2.psp.online.scea.com"] = "67.222.156.250";
g_Config.mHostToAlias["socompsp-prod.muis.pdonline.scea.com"] = "67.222.156.250";

// Hardcoded mHostToAlias entries here have been moved to the infra-dns.json file.
return hleLogSuccessInfoI(Log::sceNet, 0);
}

Expand Down
25 changes: 22 additions & 3 deletions assets/infra-dns.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,42 @@
"UCUS98615",
"UCES00038"
],
"score": 4
"score": 4,
"domains": {
"socomftb2.psp.online.scea.com": "67.222.156.250",
"socompsp-prod.muis.pdonline.scea.com": "67.222.156.250"
}
},
{
"name": "SOCOM Fireteam Bravo 2",
"known_working_ids": [
"UCUS98645",
"UCES00543"
],
"score": 4
"other_ids": [
"UCKS45043",
"UCUS80171"
],
"score": 4,
"domains": {
"socomftb2.psp.online.scea.com": "67.222.156.250",
"socompsp-prod.muis.pdonline.scea.com": "67.222.156.250"
}
},
{
"name": "SOCOM Tactical Strike",
"known_working_ids": [
"UCUS98649",
"UCES00855"
],
"score": 3
"other_ids": [
"NPUG80220"
],
"score": 3,
"domains": {
"socomftb2.psp.online.scea.com": "67.222.156.250",
"socompsp-prod.muis.pdonline.scea.com": "67.222.156.250"
}
},
{
"name": "Syphon Filter: Dark Mirror",
Expand Down

0 comments on commit 6b7dc6a

Please sign in to comment.