mirror of https://git.suyu.dev/suyu/suyu
Merge pull request #9149 from german77/volum
service: am: Stub SetRecordVolumeMuted
This commit is contained in:
commit
ccfdb7c1af
|
@ -299,7 +299,7 @@ ISelfController::ISelfController(Core::System& system_, NVFlinger::NVFlinger& nv
|
||||||
{100, &ISelfController::SetAlbumImageTakenNotificationEnabled, "SetAlbumImageTakenNotificationEnabled"},
|
{100, &ISelfController::SetAlbumImageTakenNotificationEnabled, "SetAlbumImageTakenNotificationEnabled"},
|
||||||
{110, nullptr, "SetApplicationAlbumUserData"},
|
{110, nullptr, "SetApplicationAlbumUserData"},
|
||||||
{120, &ISelfController::SaveCurrentScreenshot, "SaveCurrentScreenshot"},
|
{120, &ISelfController::SaveCurrentScreenshot, "SaveCurrentScreenshot"},
|
||||||
{130, nullptr, "SetRecordVolumeMuted"},
|
{130, &ISelfController::SetRecordVolumeMuted, "SetRecordVolumeMuted"},
|
||||||
{1000, nullptr, "GetDebugStorageChannel"},
|
{1000, nullptr, "GetDebugStorageChannel"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
@ -597,6 +597,17 @@ void ISelfController::SaveCurrentScreenshot(Kernel::HLERequestContext& ctx) {
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ISelfController::SetRecordVolumeMuted(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::RequestParser rp{ctx};
|
||||||
|
|
||||||
|
const auto is_record_volume_muted = rp.Pop<bool>();
|
||||||
|
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called. is_record_volume_muted={}", is_record_volume_muted);
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
AppletMessageQueue::AppletMessageQueue(Core::System& system)
|
AppletMessageQueue::AppletMessageQueue(Core::System& system)
|
||||||
: service_context{system, "AppletMessageQueue"} {
|
: service_context{system, "AppletMessageQueue"} {
|
||||||
on_new_message = service_context.CreateEvent("AMMessageQueue:OnMessageReceived");
|
on_new_message = service_context.CreateEvent("AMMessageQueue:OnMessageReceived");
|
||||||
|
|
|
@ -182,6 +182,7 @@ private:
|
||||||
void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
|
void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
|
||||||
void SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx);
|
void SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx);
|
||||||
void SaveCurrentScreenshot(Kernel::HLERequestContext& ctx);
|
void SaveCurrentScreenshot(Kernel::HLERequestContext& ctx);
|
||||||
|
void SetRecordVolumeMuted(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
enum class ScreenshotPermission : u32 {
|
enum class ScreenshotPermission : u32 {
|
||||||
Inherit = 0,
|
Inherit = 0,
|
||||||
|
|
Loading…
Reference in New Issue