aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-03-19 23:37:55 +0100
committerGitHub <noreply@github.com>2020-03-20 09:37:55 +1100
commit32d3f3f69024835d375401222b9abfbd32db37a5 (patch)
tree6871397cced80d299a4c479fc86839b15d7eae94 /Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
parent561d64e5bfd549c05b65c7bad87362bc03607363 (diff)
Implement GetRegionCode and add the RegionCode to settings (#999)
This implement `GetRegionCode` accordingly to RE. I've added a setting in the GUI and a field in the Configuration file with a way to update the Configuration file if needed.
Diffstat (limited to 'Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs')
-rw-r--r--Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
index c2e6680d..b65d1030 100644
--- a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
+++ b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
@@ -37,6 +37,8 @@ namespace Ryujinx.HLE.HOS.SystemState
internal long DesiredLanguageCode { get; private set; }
+ internal uint DesiredRegionCode { get; private set; }
+
public TitleLanguage DesiredTitleLanguage { get; private set; }
internal string ActiveAudioOutput { get; private set; }
@@ -79,6 +81,11 @@ namespace Ryujinx.HLE.HOS.SystemState
}
}
+ public void SetRegion(SystemRegion region)
+ {
+ DesiredRegionCode = (uint)region;
+ }
+
public void SetAudioOutputAsTv()
{
ActiveAudioOutput = AudioOutputs[0];