mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-08-16 21:58:42 +02:00
fix DockedMode variable
delete unneeded spaces fix DockedMode variable fix DockedMode variable change PerformanceMode cast to int align ICommonStateGetter Commands
This commit is contained in:
parent
8482e16dcc
commit
1f983d981e
2 changed files with 10 additions and 10 deletions
|
@ -20,14 +20,14 @@ namespace Ryujinx.HLE.OsHle.Services.Am
|
||||||
{
|
{
|
||||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||||
{
|
{
|
||||||
{ 0, GetEventHandle },
|
{ 0, GetEventHandle },
|
||||||
{ 1, ReceiveMessage },
|
{ 1, ReceiveMessage },
|
||||||
{ 5, GetOperationMode },
|
{ 5, GetOperationMode },
|
||||||
{ 6, GetPerformanceMode },
|
{ 6, GetPerformanceMode },
|
||||||
{ 8, GetBootMode },
|
{ 8, GetBootMode },
|
||||||
{ 9, GetCurrentFocusState },
|
{ 9, GetCurrentFocusState },
|
||||||
{ 60, GetDefaultDisplayResolution },
|
{ 60, GetDefaultDisplayResolution },
|
||||||
{ 61, GetDefaultDisplayResolutionChangeEvent }
|
{ 61, GetDefaultDisplayResolutionChangeEvent }
|
||||||
};
|
};
|
||||||
|
|
||||||
DisplayResolutionChangeEvent = new KEvent();
|
DisplayResolutionChangeEvent = new KEvent();
|
||||||
|
@ -69,7 +69,7 @@ namespace Ryujinx.HLE.OsHle.Services.Am
|
||||||
{
|
{
|
||||||
Apm.PerformanceMode Mode = DockedMode ? Apm.PerformanceMode.Docked : Apm.PerformanceMode.Handheld;
|
Apm.PerformanceMode Mode = DockedMode ? Apm.PerformanceMode.Docked : Apm.PerformanceMode.Handheld;
|
||||||
|
|
||||||
Context.ResponseData.Write((byte)Mode);
|
Context.ResponseData.Write((int)Mode);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace Ryujinx.HLE.OsHle
|
||||||
|
|
||||||
internal string ActiveAudioOutput { get; private set; }
|
internal string ActiveAudioOutput { get; private set; }
|
||||||
|
|
||||||
public bool DockedMode { get; set; }
|
public static bool DockedMode { get; set; }
|
||||||
|
|
||||||
public SystemStateMgr()
|
public SystemStateMgr()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue