Compare commits

...

2 commits

Author SHA1 Message Date
7688c89bc7
todo 2024-04-06 20:19:19 -04:00
32da0983d8
todo 2024-04-03 21:05:49 -04:00
3 changed files with 19 additions and 3 deletions

View file

@ -99,9 +99,11 @@ public:
{140, nullptr, "GetNetworkServiceLicenseCache"}, // 5.0.0+ {140, nullptr, "GetNetworkServiceLicenseCache"}, // 5.0.0+
{141, nullptr, "RefreshNetworkServiceLicenseCacheAsync"}, // 5.0.0+ {141, nullptr, "RefreshNetworkServiceLicenseCacheAsync"}, // 5.0.0+
{142, nullptr, "RefreshNetworkServiceLicenseCacheAsyncIfSecondsElapsed"}, // 5.0.0+ {142, nullptr, "RefreshNetworkServiceLicenseCacheAsyncIfSecondsElapsed"}, // 5.0.0+
{143, &IManagerForSystemService::GetNetworkServiceLicenseEx, "GetNetworkServiceLicenseCacheEx"}, // 15.0.0+
{150, nullptr, "CreateAuthorizationRequest"}, {150, nullptr, "CreateAuthorizationRequest"},
{160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"}, {160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"}, // 15.0.0+
{161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"}, {161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"}, // 16.0.0+
{162, nullptr, "GetRequestForNintendoAccountReauthentication"}, // 18.0.0+
}; };
// clang-format on // clang-format on
@ -120,6 +122,15 @@ private:
R_SUCCEED(); R_SUCCEED();
} }
void GetNetworkServiceLicenseEx(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb {ctx, 16};
rb.Push(ResultSuccess);
for (int i = 0; i < 16; i++) {
rb.Push(0x0);
}
}
Common::UUID account_id; Common::UUID account_id;
}; };

View file

@ -565,6 +565,10 @@ void IGeneralService::IsAnyForegroundRequestAccepted(HLERequestContext& ctx) {
rb.Push<u8>(is_accepted); rb.Push<u8>(is_accepted);
} }
void IGeneralService::ConfirmSystemAvailability(HLERequestContext& ctx) {
IPC::ResponseBuilder rb {ctx, 0};
rb.Push(ResultSuccess);
}
IGeneralService::IGeneralService(Core::System& system_) IGeneralService::IGeneralService(Core::System& system_)
: ServiceFramework{system_, "IGeneralService"}, network{system_.GetRoomNetwork()} { : ServiceFramework{system_, "IGeneralService"}, network{system_.GetRoomNetwork()} {
// clang-format off // clang-format off
@ -600,7 +604,7 @@ IGeneralService::IGeneralService(Core::System& system_)
{30, nullptr, "SetEthernetCommunicationEnabledForTest"}, {30, nullptr, "SetEthernetCommunicationEnabledForTest"},
{31, nullptr, "GetTelemetorySystemEventReadableHandle"}, {31, nullptr, "GetTelemetorySystemEventReadableHandle"},
{32, nullptr, "GetTelemetryInfo"}, {32, nullptr, "GetTelemetryInfo"},
{33, nullptr, "ConfirmSystemAvailability"}, {33, &IGeneralService::ConfirmSystemAvailability, "ConfirmSystemAvailability"},
{34, nullptr, "SetBackgroundRequestEnabled"}, {34, nullptr, "SetBackgroundRequestEnabled"},
{35, nullptr, "GetScanData"}, {35, nullptr, "GetScanData"},
{36, nullptr, "GetCurrentAccessPoint"}, {36, nullptr, "GetCurrentAccessPoint"},

View file

@ -36,6 +36,7 @@ private:
void IsEthernetCommunicationEnabled(HLERequestContext& ctx); void IsEthernetCommunicationEnabled(HLERequestContext& ctx);
void IsAnyInternetRequestAccepted(HLERequestContext& ctx); void IsAnyInternetRequestAccepted(HLERequestContext& ctx);
void IsAnyForegroundRequestAccepted(HLERequestContext& ctx); void IsAnyForegroundRequestAccepted(HLERequestContext& ctx);
void ConfirmSystemAvailability(HLERequestContext& ctx);
Network::RoomNetwork& network; Network::RoomNetwork& network;
}; };