Add a toggleable DockedMode bool
This commit is contained in:
parent
0bec547b9d
commit
aa44c4a244
4 changed files with 23 additions and 5 deletions
|
@ -3,6 +3,7 @@ using Ryujinx.HLE.OsHle.Handles;
|
|||
using Ryujinx.HLE.OsHle.Ipc;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using static Ryujinx.HLE.OsHle.SystemStateMgr;
|
||||
using static Ryujinx.HLE.OsHle.ErrorCode;
|
||||
|
||||
namespace Ryujinx.HLE.OsHle.Services.Am
|
||||
|
@ -57,14 +58,22 @@ namespace Ryujinx.HLE.OsHle.Services.Am
|
|||
|
||||
public long GetOperationMode(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write((byte)OperationMode.Handheld);
|
||||
if(DockedMode == false){
|
||||
Context.ResponseData.Write((byte)OperationMode.Handheld);
|
||||
}else{
|
||||
Context.ResponseData.Write((byte)OperationMode.Docked);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long GetPerformanceMode(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write((byte)Apm.PerformanceMode.Handheld);
|
||||
if(DockedMode == false){
|
||||
Context.ResponseData.Write((byte)Apm.PerformanceMode.Handheld);
|
||||
}else{
|
||||
Context.ResponseData.Write((byte)Apm.PerformanceMode.Docked);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -104,4 +113,4 @@ namespace Ryujinx.HLE.OsHle.Services.Am
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,8 @@ namespace Ryujinx.HLE.OsHle
|
|||
internal long DesiredLanguageCode { get; private set; }
|
||||
|
||||
internal string ActiveAudioOutput { get; private set; }
|
||||
|
||||
public static bool DockedMode = false;
|
||||
|
||||
public SystemStateMgr()
|
||||
{
|
||||
|
@ -81,4 +83,4 @@ namespace Ryujinx.HLE.OsHle
|
|||
return Code;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,8 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
using static Ryujinx.HLE.OsHle.SystemStateMgr;
|
||||
|
||||
namespace Ryujinx
|
||||
{
|
||||
public static class Config
|
||||
|
@ -34,6 +36,8 @@ namespace Ryujinx
|
|||
Log.SetEnable(LogLevel.Info, Convert.ToBoolean(Parser.Value("Logging_Enable_Info")));
|
||||
Log.SetEnable(LogLevel.Warning, Convert.ToBoolean(Parser.Value("Logging_Enable_Warn")));
|
||||
Log.SetEnable(LogLevel.Error, Convert.ToBoolean(Parser.Value("Logging_Enable_Error")));
|
||||
|
||||
DockedMode = Convert.ToBoolean(Parser.Value("Docked_Mode"));
|
||||
|
||||
GamePadEnable = Convert.ToBoolean(Parser.Value("GamePad_Enable"));
|
||||
GamePadIndex = Convert.ToInt32 (Parser.Value("GamePad_Index"));
|
||||
|
|
|
@ -19,6 +19,9 @@ Logging_Enable_Error = true
|
|||
#Filtered log classes, seperated by ", ", eg. `Logging_Filtered_Classes = Loader, ServiceFS`
|
||||
Logging_Filtered_Classes =
|
||||
|
||||
#Enable or Disable Docked Mode
|
||||
Docked_Mode = false
|
||||
|
||||
#Controller Device Index
|
||||
GamePad_Index = 0
|
||||
|
||||
|
@ -79,4 +82,4 @@ Controls_Right_JoyConController_Button_R = RShoulder
|
|||
Controls_Right_JoyConController_Button_ZR = RTrigger
|
||||
|
||||
Controls_Left_JoyConController_Stick = LJoystick
|
||||
Controls_Right_JoyConController_Stick = RJoystick
|
||||
Controls_Right_JoyConController_Stick = RJoystick
|
||||
|
|
Loading…
Add table
Reference in a new issue