From c160d1e9bca68c856e040a6268fe99f87f5dea5f Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Thu, 1 Aug 2024 13:48:54 +1000 Subject: [PATCH] feat(secure): Add stubbed Splatoon Ranking protocol Fixes freezes related to Splatfest results upload --- nex/register_common_secure_server_protocols.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nex/register_common_secure_server_protocols.go b/nex/register_common_secure_server_protocols.go index a8c1577..6f03247 100644 --- a/nex/register_common_secure_server_protocols.go +++ b/nex/register_common_secure_server_protocols.go @@ -15,10 +15,12 @@ import ( commonmatchmaking "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making" commonmatchmakingext "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making-ext" commonmatchmakeextension "github.com/PretendoNetwork/nex-protocols-common-go/v2/matchmake-extension" + commonranking "github.com/PretendoNetwork/nex-protocols-common-go/v2/ranking" matchmaking "github.com/PretendoNetwork/nex-protocols-go/v2/match-making" matchmakingext "github.com/PretendoNetwork/nex-protocols-go/v2/match-making-ext" matchmakingtypes "github.com/PretendoNetwork/nex-protocols-go/v2/match-making/types" matchmakeextension "github.com/PretendoNetwork/nex-protocols-go/v2/matchmake-extension" + ranking "github.com/PretendoNetwork/nex-protocols-go/v2/ranking/splatoon" ) func CreateReportDBRecord(_ *types.PID, _ *types.PrimitiveU32, _ *types.QBuffer) error { @@ -142,4 +144,8 @@ func registerCommonSecureServerProtocols() { matchmakeExtensionProtocol.SetHandlerGetPlayingSession(stubGetPlayingSession) commonMatchmakeExtensionProtocol.GameSpecificMatchmakeSessionSearchCriteriaChecks = gameSpecificMatchmakeSessionSearchCriteriaChecksHandler commonMatchmakeExtensionProtocol.OnAfterAutoMatchmakeWithParamPostpone = onAfterAutoMatchmakeWithParamPostpone + + rankingProtocol := ranking.NewProtocol(globals.SecureEndpoint) + globals.SecureEndpoint.RegisterServiceProtocol(rankingProtocol) + commonranking.NewCommonProtocol(rankingProtocol) }