// GetPerformanceMode() -> u32 public ResultCode GetPerformanceMode(ServiceCtx context) { Apm.PerformanceMode mode = context.Device.System.State.DockedMode ? Apm.PerformanceMode.Docked : Apm.PerformanceMode.Handheld; context.ResponseData.Write((int)mode); return(ResultCode.Success); }
public long GetPerformanceMode(ServiceCtx Context) { Apm.PerformanceMode Mode = Context.Device.System.State.DockedMode ? Apm.PerformanceMode.Docked : Apm.PerformanceMode.Handheld; Context.ResponseData.Write((int)Mode); return(0); }