Merge pull request #31 from sudachi-emu/feature-1700-stubs

Added v17.0.0 stubs for all documented functions in switchbrew.org
This commit is contained in:
Jarrod Norwell 2024-03-30 01:51:19 +08:00 committed by GitHub
commit 2af4aa32e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
28 changed files with 69 additions and 25 deletions

2
externals/SDL vendored

@ -1 +1 @@
Subproject commit d79f8652510b8bd1f89c90be2ab65fc8940056eb
Subproject commit ad92c9e30093676a3fd84d1974b821857d8bae58

@ -1 +1 @@
Subproject commit f030d9dd8ca297b84b10330cee87f72acc3b0aab
Subproject commit cfebfc96b2b0bce93da7d12f2c14cc01793ae25c

@ -1 +1 @@
Subproject commit ddf2f1a3b0631f759b82ec4a1f17a418d73f684d
Subproject commit d90f5c7eb1dcfe6ee21363d3c73200425eb6e8b8

@ -1 +1 @@
Subproject commit 2f382df218d7e8516dee3b3caccb819a62b571a2
Subproject commit 19b940e864bd3a5afb3c79e3c6788869d01a19eb

@ -1 +1 @@
Subproject commit 6791a8364d1644b44e0fb13fca472c398f78eb67
Subproject commit 548dfff0aef25e36e971af96b49ce7fbb72d840e

2
externals/cubeb vendored

@ -1 +1 @@
Subproject commit 74d6b0546576d9ee13a078ed51f87a6eede62014
Subproject commit 7d6c2fdb7981d0dfe8b68748ed1b1c8b1c67aa9e

@ -1 +1 @@
Subproject commit d65908c3d416e331e075c3a5ffe7bc670112a018
Subproject commit 02eb2fc577e926e9f927829f1d8c8cdb8f31cbbd

@ -1 +1 @@
Subproject commit 5cd3f5c5ceea6d9e9d435ccdd922d9b99e55d10b
Subproject commit deec5f75ee1a8ccbe32c8780b1d17284fc87b0f1

@ -1 +1 @@
Subproject commit 6cf58bac95ff62cd3453cba2c898993b40e1da66
Subproject commit 233a8de6f9bfb47d767f9d3272532abfce71d05f

2
externals/opus vendored

@ -1 +1 @@
Subproject commit c1f0f54018bf1f6f86710be1517313fb7b49556c
Subproject commit 95dbea83486b90256785aa3c75dd2827f591a34c

2
externals/vcpkg vendored

@ -1 +1 @@
Subproject commit 90542a476c8ef3288039e2443a775e48db279173
Subproject commit 3c76dc55f8bd2b7f4824bcd860055094bfbbb9ea

2
externals/xbyak vendored

@ -1 +1 @@
Subproject commit 9c0f5d3ecb06d2c93c2b59becb9b3b763213e74e
Subproject commit 80477f635345e8f13efc512d84b01b94cad92cd9

View File

@ -11,9 +11,9 @@ namespace HLE::ApiVersion {
// Horizon OS version constants.
constexpr u8 HOS_VERSION_MAJOR = 17;
constexpr u8 HOS_VERSION_MINOR = 0;
constexpr u8 HOS_VERSION_MICRO = 1;
constexpr u8 HOS_VERSION_MAJOR = 12;
constexpr u8 HOS_VERSION_MINOR = 1;
constexpr u8 HOS_VERSION_MICRO = 0;
// NintendoSDK version constants.
@ -21,9 +21,9 @@ constexpr u8 SDK_REVISION_MAJOR = 1;
constexpr u8 SDK_REVISION_MINOR = 0;
constexpr char PLATFORM_STRING[] = "NX";
constexpr char VERSION_HASH[] = "30dd7d0584cd38e3a1db26a5719566d21d77110e";
constexpr char DISPLAY_VERSION[] = "17.0.1";
constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 17.0.1-1.0";
constexpr char VERSION_HASH[] = "76b10c2dab7d3aa73fc162f8dff1655e6a21caf4";
constexpr char DISPLAY_VERSION[] = "12.1.0";
constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 12.1.0-1.0";
// Atmosphere version constants.

View File

@ -102,6 +102,7 @@ public:
{150, nullptr, "CreateAuthorizationRequest"},
{160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"},
{161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"},
{170, nullptr, "CreateDeviceHistoryRequest"} // 17.0.0+
};
// clang-format on
@ -180,6 +181,7 @@ public:
{150, nullptr, "CreateAuthorizationRequest"},
{160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"},
{161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"},
{170, nullptr, "CreateDeviceHistoryRequest"}, // 17.0.0+
{200, nullptr, "IsRegistered"},
{201, nullptr, "RegisterAsync"},
{202, nullptr, "UnregisterAsync"},
@ -686,6 +688,11 @@ public:
{103, nullptr, "GetProfileImage"},
{110, nullptr, "RegisterUserAsync"},
{111, nullptr, "GetUid"},
{200, nullptr, "ApplyResponseForUserCreationAsync"}, // 17.0.0+
{205, nullptr, "SuspendAfterApplyResponse"}, // 17.0.0+
{210, nullptr, "IsProfileAvailable"}, // 17.0.0+
{220, nullptr, "RegisterUserAsyncWithoutProfile"}, // 17.0.0+
{221, nullptr, "RegisterUserWithProfileAsync"} // 17.0.0+
};
// clang-format on

View File

@ -50,6 +50,9 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module_, std::shared_ptr<ProfileManager>
{210, nullptr, "CreateFloatingRegistrationRequest"},
{211, nullptr, "CreateProcedureToRegisterUserWithNintendoAccount"},
{212, nullptr, "ResumeProcedureToRegisterUserWithNintendoAccount"},
{213, nullptr, "CreateProcedureToCreateUserWithNintendoAccount"}, // 17.0.0+
{214, nullptr, "ResumeProcedureToCreateUserWithNintendoAccount"}, // 17.0.0+
{215, nullptr, "ResumeProcedureToCreateUserWithNintendoAccountAfterApplyResponse"}, // 17.0.0+
{230, nullptr, "AuthenticateServiceAsync"},
{250, nullptr, "GetBaasAccountAdministrator"},
{290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},

View File

@ -109,6 +109,7 @@ APM_Sys::APM_Sys(Core::System& system_, Controller& controller_)
{5, nullptr, "LoadAndApplySettings"},
{6, &APM_Sys::SetCpuBoostMode, "SetCpuBoostMode"},
{7, &APM_Sys::GetCurrentPerformanceConfiguration, "GetCurrentPerformanceConfiguration"},
{8, nullptr, "GetCurrentPerformanceMode"} // 17.0.0+
};
// clang-format on

View File

@ -33,8 +33,8 @@ IAudioController::IAudioController(Core::System& system_)
{16, nullptr, "SetInputTargetForceEnabled"},
{17, D<&IAudioController::SetHeadphoneOutputLevelMode>, "SetHeadphoneOutputLevelMode"},
{18, D<&IAudioController::GetHeadphoneOutputLevelMode>, "GetHeadphoneOutputLevelMode"},
{19, nullptr, "AcquireAudioVolumeUpdateEventForPlayReport"},
{20, nullptr, "AcquireAudioOutputDeviceUpdateEventForPlayReport"},
{19, nullptr, "SetForceMonauralOutputModeEnabled"}, // (AcquireAudioVolumeUpdateEventForPlayReport 3.0.0-13.2.1) 17.0.0+
{20, nullptr, "IsForceMonauralOutputModeEnabled"}, // (AcquireAudioOutputDeviceUpdateEventForPlayReport 3.0.0-13.2.1) 17.0.0+
{21, nullptr, "GetAudioOutputTargetForPlayReport"},
{22, D<&IAudioController::NotifyHeadphoneVolumeWarningDisplayedEvent>, "NotifyHeadphoneVolumeWarningDisplayedEvent"},
{23, nullptr, "SetSystemOutputMasterVolume"},

View File

@ -29,6 +29,10 @@ IAudioDevice::IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u
{12, D<&IAudioDevice::QueryAudioDeviceOutputEvent>, "QueryAudioDeviceOutputEvent"},
{13, D<&IAudioDevice::GetActiveAudioDeviceName>, "GetActiveAudioOutputDeviceName"},
{14, D<&IAudioDevice::ListAudioOutputDeviceName>, "ListAudioOutputDeviceName"},
{15, nullptr, "AcquireAudioInputDeviceNotification"}, // 17.0.0+
{16, nullptr, "ReleaseAudioInputDeviceNotification"}, // 17.0.0+
{17, nullptr, "AcquireAudioOutputDeviceNotification"}, // 17.0.0+
{18, nullptr, "ReleaseAudioOutputDeviceNotification"} // 17.0.0+
};
RegisterHandlers(functions);

View File

@ -266,6 +266,10 @@ public:
{12, &IAudioDevice::QueryAudioDeviceOutputEvent, "QueryAudioDeviceOutputEvent"},
{13, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioOutputDeviceName"},
{14, &IAudioDevice::ListAudioOutputDeviceName, "ListAudioOutputDeviceName"},
{15, nullptr, "AcquireAudioInputDeviceNotification"}, // 17.0.0+
{16, nullptr, "ReleaseAudioInputDeviceNotification"}, // 17.0.0+
{17, nullptr, "AcquireAudioOutputDeviceNotification"}, // 17.0.0+
{18, nullptr, "ReleaseAudioOutputDeviceNotification"} // 17.0.0+
};
RegisterHandlers(functions);
@ -424,8 +428,8 @@ private:
};
AudRenU::AudRenU(Core::System& system_)
: ServiceFramework{system_, "audren:u"},
service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} {
: ServiceFramework{system_, "audren:u"}, service_context{system_, "audren:u"},
impl{std::make_unique<Manager>(system_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &AudRenU::OpenAudioRenderer, "OpenAudioRenderer"},

View File

@ -17,8 +17,8 @@ namespace Service::HID {
IHidDebugServer::IHidDebugServer(Core::System& system_, std::shared_ptr<ResourceManager> resource,
std::shared_ptr<HidFirmwareSettings> settings)
: ServiceFramework{system_, "hid:dbg"}, resource_manager{resource}, firmware_settings{
settings} {
: ServiceFramework{system_, "hid:dbg"}, resource_manager{resource},
firmware_settings{settings} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "DeactivateDebugPad"},
@ -88,6 +88,7 @@ IHidDebugServer::IHidDebugServer(Core::System& system_, std::shared_ptr<Resource
{211, nullptr, "StartFirmwareUpdateIndividual"},
{215, nullptr, "SetUsbFirmwareForceUpdateEnabled"},
{216, nullptr, "SetAllKuinaDevicesToFirmwareUpdateMode"},
{217, nullptr, "StartFirmwareUpdateFromImageSet"}, // 17.0.0+
{221, nullptr, "UpdateControllerColor"},
{222, nullptr, "ConnectUsbPadsAsync"},
{223, nullptr, "DisconnectUsbPadsAsync"},
@ -135,6 +136,8 @@ IHidDebugServer::IHidDebugServer(Core::System& system_, std::shared_ptr<Resource
{331, nullptr, "DetachHdlsVirtualDevice"},
{332, nullptr, "SetHdlsState"},
{350, nullptr, "AddRegisteredDevice"},
{351, nullptr, "GetRegisteredDevicesCountDebug"}, // 17.0.0+
{352, nullptr, "DeleteRegisteredDevicesDebug"}, // 17.0.0+
{400, nullptr, "DisableExternalMcuOnNxDevice"},
{401, nullptr, "DisableRailDeviceFiltering"},
{402, nullptr, "EnableWiredPairing"},

View File

@ -128,6 +128,8 @@ IHidServer::IHidServer(Core::System& system_, std::shared_ptr<ResourceManager> r
{210, C<&IHidServer::EndPermitVibrationSession>, "EndPermitVibrationSession"},
{211, C<&IHidServer::IsVibrationDeviceMounted>, "IsVibrationDeviceMounted"},
{212, C<&IHidServer::SendVibrationValueInBool>, "SendVibrationValueInBool"},
{213, nullptr, "SendVibrationValueInMode"}, // 17.0.0+
{214, nullptr, "SendVibrationValuesInMode"}, // 17.0.0+
{300, C<&IHidServer::ActivateConsoleSixAxisSensor>, "ActivateConsoleSixAxisSensor"},
{301, C<&IHidServer::StartConsoleSixAxisSensor>, "StartConsoleSixAxisSensor"},
{302, C<&IHidServer::StopConsoleSixAxisSensor>, "StopConsoleSixAxisSensor"},
@ -139,6 +141,8 @@ IHidServer::IHidServer(Core::System& system_, std::shared_ptr<ResourceManager> r
{308, nullptr, "SetSevenSixAxisSensorFusionStrength"},
{309, nullptr, "GetSevenSixAxisSensorFusionStrength"},
{310, C<&IHidServer::ResetSevenSixAxisSensorTimestamp>, "ResetSevenSixAxisSensorTimestamp"},
{311, nullptr, "ForceActivateConsoleSixAxisSensor"}, // 17.0.0+
{312, nullptr, "ForceDeactivateConsoleSixAxisSensor"}, // 17.0.0+
{400, C<&IHidServer::IsUsbFullKeyControllerEnabled>, "IsUsbFullKeyControllerEnabled"},
{401, nullptr, "EnableUsbFullKeyController"},
{402, nullptr, "IsUsbFullKeyControllerConnected"},

View File

@ -221,6 +221,9 @@ IHidSystemServer::IHidSystemServer(Core::System& system_, std::shared_ptr<Resour
{1289, nullptr, "SetButtonConfigStorageFull"},
{1290, nullptr, "DeleteButtonConfigStorageRight"},
{1291, nullptr, "DeleteButtonConfigStorageRight"},
{1320, nullptr, "WakeTouchScreenUp"}, // 17.0.0+
{1321, nullptr, "PutTouchScreenToSleep"}, // 17.0.0+
{12010, nullptr, "SetButtonConfigLeft"} // 17.0.0+
};
// clang-format on

View File

@ -232,6 +232,7 @@ public:
{2, nullptr, "ClearDebugResponse"},
{3, nullptr, "RegisterDebugResponse"},
{4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
{5, nullptr, "CreateServerInterface2"} // 17.0.0+
};
// clang-format on

View File

@ -39,6 +39,14 @@ public:
{32, nullptr, "DestroyTokenForBaaS"},
{33, nullptr, "CreateTokenForBaaS"},
{34, nullptr, "SetBaaSDeviceAccountIdList"},
{35, nullptr, "LinkNsaId"}, // 17.0.0+
{36, nullptr, "UnlinkNsaId"}, // 17.0.0+
{40, nullptr, "GetNetworkServiceAccountIdTokenRequestEvent"}, // 17.0.0+
{41, nullptr, "TryPopNetworkServiceAccountIdTokenRequestUid"}, // 17.0.0+
{42, nullptr, "SetNetworkServiceAccountIdTokenSuccess"}, // 17.0.0+
{43, nullptr, "SetNetworkServiceAccountIdTokenFailure"}, // 17.0.0+
{44, nullptr, "SetUidList"}, // 17.0.0+
{45, nullptr, "PutDigitalTwinKeyValue"}, // 17.0.0+
{101, nullptr, "Suspend"},
{102, nullptr, "Resume"},
{103, nullptr, "GetState"},

View File

@ -286,6 +286,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{2520, nullptr, "IsQualificationTransitionSupportedByProcessId"},
{2521, nullptr, "GetRightsUserChangedEvent"},
{2522, nullptr, "IsRomRedirectionAvailable"},
{2523, nullptr, "GetProgramId"}, // 17.0.0+
{2800, nullptr, "GetApplicationIdOfPreomia"},
{3000, nullptr, "RegisterDeviceLockKey"},
{3001, nullptr, "UnregisterDeviceLockKey"},
@ -303,6 +304,9 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{3013, nullptr, "IsGameCardEnabled"},
{3014, nullptr, "IsLocalContentShareEnabled"},
{3050, nullptr, "ListAssignELicenseTaskResult"},
{3100, nullptr, "GetSafeSystemVersionCheckInfo"}, // 17.0.0+
{3101, nullptr, "RequestUpdateSafeSystemVersionCheckInfo"}, // 17.0.0+
{3102, nullptr, "ResetSafeSystemVersionCheckInfo"}, // 17.0.0+
{9999, nullptr, "GetApplicationCertificate"},
};
// clang-format on

View File

@ -1007,6 +1007,7 @@ BSD::BSD(Core::System& system_, const char* name)
{31, &BSD::EventFd, "EventFd"},
{32, nullptr, "RegisterResourceStatisticsName"},
{33, nullptr, "Initialize2"},
{35, nullptr, "NifIoctl"} // 17.0.0+
};
// clang-format on

View File

@ -95,6 +95,7 @@ enum class NpadRevision : u32 {
Revision1 = 1,
Revision2 = 2,
Revision3 = 3,
Revision5 = 5 // 18.0.0+
};
// This is nn::hid::detail::ColorAttribute

View File

@ -24,7 +24,7 @@ DiscordImpl::DiscordImpl(Core::System& system_) : system{system_} {
DiscordEventHandlers handlers{};
// The number is the client ID for sudachi, it's used for images and the
// application name
Discord_Initialize("712465656758665259", &handlers, 1, nullptr);
Discord_Initialize("1223291656732934377", &handlers, 1, nullptr);
}
DiscordImpl::~DiscordImpl() {