mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-26 08:47:10 +02:00
+ stubbed services
This commit is contained in:
parent
39af7d4c11
commit
17dccfe052
4 changed files with 61 additions and 12 deletions
|
|
@ -29,7 +29,7 @@ IBtmSystemCore::IBtmSystemCore(Core::System& system_)
|
||||||
{10, nullptr, "StartAudioDeviceDiscovery"},
|
{10, nullptr, "StartAudioDeviceDiscovery"},
|
||||||
{11, nullptr, "StopAudioDeviceDiscovery"},
|
{11, nullptr, "StopAudioDeviceDiscovery"},
|
||||||
{12, nullptr, "IsDiscoveryingAudioDevice"},
|
{12, nullptr, "IsDiscoveryingAudioDevice"},
|
||||||
{13, nullptr, "GetDiscoveredAudioDevice"},
|
{13, C<&IBtmSystemCore::GetDiscoveredAudioDevice>, "GetDiscoveredAudioDevice"},
|
||||||
{14, C<&IBtmSystemCore::AcquireAudioDeviceConnectionEvent>, "AcquireAudioDeviceConnectionEvent"},
|
{14, C<&IBtmSystemCore::AcquireAudioDeviceConnectionEvent>, "AcquireAudioDeviceConnectionEvent"},
|
||||||
{15, nullptr, "ConnectAudioDevice"},
|
{15, nullptr, "ConnectAudioDevice"},
|
||||||
{16, nullptr, "IsConnectingAudioDevice"},
|
{16, nullptr, "IsConnectingAudioDevice"},
|
||||||
|
|
@ -93,6 +93,11 @@ Result IBtmSystemCore::AcquireRadioEvent(Out<bool> out_is_valid,
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IBtmSystemCore::GetDiscoveredAudioDevice(OutArray<std::array<u8, 0xFF>, BufferAttr_HipcPointer> out_audio_devices, s32 count, Out<s32> out_total) {
|
||||||
|
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
Result IBtmSystemCore::AcquireAudioDeviceConnectionEvent(
|
Result IBtmSystemCore::AcquireAudioDeviceConnectionEvent(
|
||||||
OutCopyHandle<Kernel::KReadableEvent> out_event) {
|
OutCopyHandle<Kernel::KReadableEvent> out_event) {
|
||||||
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,8 @@ private:
|
||||||
Result DisableRadio();
|
Result DisableRadio();
|
||||||
Result IsRadioEnabled(Out<bool> out_is_enabled);
|
Result IsRadioEnabled(Out<bool> out_is_enabled);
|
||||||
|
|
||||||
Result AcquireRadioEvent(Out<bool> out_is_valid,
|
Result AcquireRadioEvent(Out<bool> out_is_valid, OutCopyHandle<Kernel::KReadableEvent> out_event);
|
||||||
OutCopyHandle<Kernel::KReadableEvent> out_event);
|
Result GetDiscoveredAudioDevice(OutArray<std::array<u8, 0xFF>, BufferAttr_HipcPointer> out_audio_devices, s32 count, Out<s32> out_total);
|
||||||
|
|
||||||
Result AcquireAudioDeviceConnectionEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
Result AcquireAudioDeviceConnectionEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
|
||||||
|
|
||||||
Result GetConnectedAudioDevices(
|
Result GetConnectedAudioDevices(
|
||||||
|
|
|
||||||
|
|
@ -142,10 +142,10 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
|
||||||
{22, C<&ISystemSettingsServer::SetEulaVersions>, "SetEulaVersions"},
|
{22, C<&ISystemSettingsServer::SetEulaVersions>, "SetEulaVersions"},
|
||||||
{23, C<&ISystemSettingsServer::GetColorSetId>, "GetColorSetId"},
|
{23, C<&ISystemSettingsServer::GetColorSetId>, "GetColorSetId"},
|
||||||
{24, C<&ISystemSettingsServer::SetColorSetId>, "SetColorSetId"},
|
{24, C<&ISystemSettingsServer::SetColorSetId>, "SetColorSetId"},
|
||||||
{25, nullptr, "GetConsoleInformationUploadFlag"},
|
{25, C<&ISystemSettingsServer::GetConsoleInformationUploadFlag>, "GetConsoleInformationUploadFlag"},
|
||||||
{26, nullptr, "SetConsoleInformationUploadFlag"},
|
{26, C<&ISystemSettingsServer::SetConsoleInformationUploadFlag>, "SetConsoleInformationUploadFlag"},
|
||||||
{27, nullptr, "GetAutomaticApplicationDownloadFlag"},
|
{27, C<&ISystemSettingsServer::GetAutomaticApplicationDownloadFlag>, "GetAutomaticApplicationDownloadFlag"},
|
||||||
{28, nullptr, "SetAutomaticApplicationDownloadFlag"},
|
{28, C<&ISystemSettingsServer::SetAutomaticApplicationDownloadFlag>, "SetAutomaticApplicationDownloadFlag"},
|
||||||
{29, C<&ISystemSettingsServer::GetNotificationSettings>, "GetNotificationSettings"},
|
{29, C<&ISystemSettingsServer::GetNotificationSettings>, "GetNotificationSettings"},
|
||||||
{30, C<&ISystemSettingsServer::SetNotificationSettings>, "SetNotificationSettings"},
|
{30, C<&ISystemSettingsServer::SetNotificationSettings>, "SetNotificationSettings"},
|
||||||
{31, C<&ISystemSettingsServer::GetAccountNotificationSettings>, "GetAccountNotificationSettings"},
|
{31, C<&ISystemSettingsServer::GetAccountNotificationSettings>, "GetAccountNotificationSettings"},
|
||||||
|
|
@ -160,8 +160,8 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
|
||||||
{42, nullptr, "SetEdid"},
|
{42, nullptr, "SetEdid"},
|
||||||
{43, C<&ISystemSettingsServer::GetAudioOutputMode>, "GetAudioOutputMode"},
|
{43, C<&ISystemSettingsServer::GetAudioOutputMode>, "GetAudioOutputMode"},
|
||||||
{44, C<&ISystemSettingsServer::SetAudioOutputMode>, "SetAudioOutputMode"},
|
{44, C<&ISystemSettingsServer::SetAudioOutputMode>, "SetAudioOutputMode"},
|
||||||
{45, C<&ISystemSettingsServer::GetSpeakerAutoMuteFlag> , "GetSpeakerAutoMuteFlag"},
|
{45, C<&ISystemSettingsServer::GetSpeakerAutoMuteFlag>, "GetSpeakerAutoMuteFlag"},
|
||||||
{46, C<&ISystemSettingsServer::SetSpeakerAutoMuteFlag> , "SetSpeakerAutoMuteFlag"},
|
{46, C<&ISystemSettingsServer::SetSpeakerAutoMuteFlag>, "SetSpeakerAutoMuteFlag"},
|
||||||
{47, C<&ISystemSettingsServer::GetQuestFlag>, "GetQuestFlag"},
|
{47, C<&ISystemSettingsServer::GetQuestFlag>, "GetQuestFlag"},
|
||||||
{48, C<&ISystemSettingsServer::SetQuestFlag>, "SetQuestFlag"},
|
{48, C<&ISystemSettingsServer::SetQuestFlag>, "SetQuestFlag"},
|
||||||
{49, nullptr, "GetDataDeletionSettings"},
|
{49, nullptr, "GetDataDeletionSettings"},
|
||||||
|
|
@ -180,8 +180,8 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
|
||||||
{62, C<&ISystemSettingsServer::GetDebugModeFlag>, "GetDebugModeFlag"},
|
{62, C<&ISystemSettingsServer::GetDebugModeFlag>, "GetDebugModeFlag"},
|
||||||
{63, C<&ISystemSettingsServer::GetPrimaryAlbumStorage>, "GetPrimaryAlbumStorage"},
|
{63, C<&ISystemSettingsServer::GetPrimaryAlbumStorage>, "GetPrimaryAlbumStorage"},
|
||||||
{64, C<&ISystemSettingsServer::SetPrimaryAlbumStorage>, "SetPrimaryAlbumStorage"},
|
{64, C<&ISystemSettingsServer::SetPrimaryAlbumStorage>, "SetPrimaryAlbumStorage"},
|
||||||
{65, nullptr, "GetUsb30EnableFlag"},
|
{65, C<&ISystemSettingsServer::GetUsb30EnableFlag>, "GetUsb30EnableFlag"},
|
||||||
{66, nullptr, "SetUsb30EnableFlag"},
|
{66, C<&ISystemSettingsServer::SetUsb30EnableFlag>, "SetUsb30EnableFlag"},
|
||||||
{67, C<&ISystemSettingsServer::GetBatteryLot>, "GetBatteryLot"},
|
{67, C<&ISystemSettingsServer::GetBatteryLot>, "GetBatteryLot"},
|
||||||
{68, C<&ISystemSettingsServer::GetSerialNumber>, "GetSerialNumber"},
|
{68, C<&ISystemSettingsServer::GetSerialNumber>, "GetSerialNumber"},
|
||||||
{69, C<&ISystemSettingsServer::GetNfcEnableFlag>, "GetNfcEnableFlag"},
|
{69, C<&ISystemSettingsServer::GetNfcEnableFlag>, "GetNfcEnableFlag"},
|
||||||
|
|
@ -1074,6 +1074,45 @@ Result ISystemSettingsServer::SetNfcEnableFlag(bool nfc_enable_flag) {
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::GetConsoleInformationUploadFlag(Out<bool> out_flag) {
|
||||||
|
LOG_INFO(Service_SET, "called {}", m_system_settings.console_information_upload_flag);
|
||||||
|
*out_flag = m_system_settings.console_information_upload_flag;
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::SetConsoleInformationUploadFlag(bool flag) {
|
||||||
|
LOG_INFO(Service_SET, "called {}", flag);
|
||||||
|
m_system_settings.usb_30_enable_flag = flag;
|
||||||
|
SetSaveNeeded();
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::GetAutomaticApplicationDownloadFlag(Out<bool> out_flag) {
|
||||||
|
LOG_INFO(Service_SET, "called {}", m_system_settings.usb_30_enable_flag);
|
||||||
|
*out_flag = m_system_settings.automatic_application_download_flag;
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::SetAutomaticApplicationDownloadFlag(bool flag) {
|
||||||
|
LOG_INFO(Service_SET, "called {}", flag);
|
||||||
|
m_system_settings.automatic_application_download_flag = flag;
|
||||||
|
SetSaveNeeded();
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::GetUsb30EnableFlag(Out<bool> out_usb30_enable_flag) {
|
||||||
|
LOG_INFO(Service_SET, "called, usb30_enable_flag={}", m_system_settings.usb_30_enable_flag);
|
||||||
|
*out_usb30_enable_flag = m_system_settings.usb_30_enable_flag;
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
Result ISystemSettingsServer::SetUsb30EnableFlag(bool usb30_enable_flag) {
|
||||||
|
LOG_INFO(Service_SET, "called, usb30_enable_flag={}", usb30_enable_flag);
|
||||||
|
m_system_settings.usb_30_enable_flag = usb30_enable_flag;
|
||||||
|
SetSaveNeeded();
|
||||||
|
R_SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
Result ISystemSettingsServer::GetSleepSettings(Out<SleepSettings> out_sleep_settings) {
|
Result ISystemSettingsServer::GetSleepSettings(Out<SleepSettings> out_sleep_settings) {
|
||||||
LOG_INFO(Service_SET, "called, flags={}, handheld_sleep_plan={}, console_sleep_plan={}",
|
LOG_INFO(Service_SET, "called, flags={}, handheld_sleep_plan={}, console_sleep_plan={}",
|
||||||
m_system_settings.sleep_settings.flags.raw,
|
m_system_settings.sleep_settings.flags.raw,
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,12 @@ public:
|
||||||
Result SetPrimaryAlbumStorage(PrimaryAlbumStorage primary_album_storage);
|
Result SetPrimaryAlbumStorage(PrimaryAlbumStorage primary_album_storage);
|
||||||
Result GetBatteryLot(Out<BatteryLot> out_battery_lot);
|
Result GetBatteryLot(Out<BatteryLot> out_battery_lot);
|
||||||
Result GetSerialNumber(Out<SerialNumber> out_console_serial);
|
Result GetSerialNumber(Out<SerialNumber> out_console_serial);
|
||||||
|
Result GetConsoleInformationUploadFlag(Out<bool> out_flag);
|
||||||
|
Result SetConsoleInformationUploadFlag(bool flag);
|
||||||
|
Result GetAutomaticApplicationDownloadFlag(Out<bool> out_flag);
|
||||||
|
Result SetAutomaticApplicationDownloadFlag(bool flag);
|
||||||
|
Result GetUsb30EnableFlag(Out<bool> out_usb30_enable_flag);
|
||||||
|
Result SetUsb30EnableFlag(bool usb30_enable_flag);
|
||||||
Result GetNfcEnableFlag(Out<bool> out_nfc_enable_flag);
|
Result GetNfcEnableFlag(Out<bool> out_nfc_enable_flag);
|
||||||
Result SetNfcEnableFlag(bool nfc_enable_flag);
|
Result SetNfcEnableFlag(bool nfc_enable_flag);
|
||||||
Result GetSleepSettings(Out<SleepSettings> out_sleep_settings);
|
Result GetSleepSettings(Out<SleepSettings> out_sleep_settings);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue