1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-13 03:16:40 +00:00

Merge pull request #344 from greggameplayer/patch-1

fix toggleable variable in config to set the docked mode
This commit is contained in:
emmauss 2018-08-11 16:33:12 +03:00 committed by GitHub
commit c05600a26b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -20,14 +20,14 @@ namespace Ryujinx.HLE.OsHle.Services.Am
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, GetEventHandle },
{ 1, ReceiveMessage },
{ 5, GetOperationMode },
{ 6, GetPerformanceMode },
{ 8, GetBootMode },
{ 9, GetCurrentFocusState },
{ 60, GetDefaultDisplayResolution },
{ 61, GetDefaultDisplayResolutionChangeEvent }
{ 0, GetEventHandle },
{ 1, ReceiveMessage },
{ 5, GetOperationMode },
{ 6, GetPerformanceMode },
{ 8, GetBootMode },
{ 9, GetCurrentFocusState },
{ 60, GetDefaultDisplayResolution },
{ 61, GetDefaultDisplayResolutionChangeEvent }
};
DisplayResolutionChangeEvent = new KEvent();
@ -69,7 +69,7 @@ namespace Ryujinx.HLE.OsHle.Services.Am
{
Apm.PerformanceMode Mode = DockedMode ? Apm.PerformanceMode.Docked : Apm.PerformanceMode.Handheld;
Context.ResponseData.Write((byte)Mode);
Context.ResponseData.Write((int)Mode);
return 0;
}

View file

@ -37,7 +37,7 @@ namespace Ryujinx.HLE.OsHle
internal string ActiveAudioOutput { get; private set; }
public bool DockedMode { get; set; }
public static bool DockedMode { get; set; }
public SystemStateMgr()
{