Skip to content

Commit

Permalink
AppletAE: stub SetRecordVolumeMuted (#3804)
Browse files Browse the repository at this point in the history
* Update IIrSensorServer.cs

* Update IIrSensorServer.cs

* Apply suggestions from code review

Addressed formatting feedback

Co-authored-by: Ac_K <[email protected]>

* Update IIrSensorServer.cs

* Update ISelfController.cs

* Update ISelfController.cs

Co-authored-by: Ac_K <[email protected]>
  • Loading branch information
LukeWarnut and AcK77 authored Oct 27, 2022
1 parent f7c7b66 commit d540af5
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ISelfController : IpcService
private bool _handlesRequestToDisplay = false;
private bool _autoSleepDisabled = false;
private bool _albumImageTakenNotificationEnabled = false;
private bool _recordVolumeMuted = false;

private uint _screenShotImageOrientation = 0;
private uint _idleTimeDetectionExtension = 0;
Expand Down Expand Up @@ -389,5 +390,18 @@ public ResultCode SaveCurrentScreenshot(ServiceCtx context)

return ResultCode.Success;
}

[CommandHipc(130)] // 13.0.0+
// SetRecordVolumeMuted(b8)
public ResultCode SetRecordVolumeMuted(ServiceCtx context)
{
bool recordVolumeMuted = context.RequestData.ReadBoolean();

Logger.Stub?.PrintStub(LogClass.ServiceAm, new { recordVolumeMuted });

_recordVolumeMuted = recordVolumeMuted;

return ResultCode.Success;
}
}
}
}

0 comments on commit d540af5

Please sign in to comment.