aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/SystemStateMgr.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-10 21:46:42 -0300
committergdkchan <gab.dark.100@gmail.com>2018-06-10 21:46:42 -0300
commit76f3b1b3a4637ec72abfbb8cbc0679f2e0ca838f (patch)
tree0411b709de31c1c0517763512df8eeb9f7491bc9 /Ryujinx.Core/OsHle/SystemStateMgr.cs
parent518fe799da6dd4f12c58c9e6e174767effb0b868 (diff)
Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation
Diffstat (limited to 'Ryujinx.Core/OsHle/SystemStateMgr.cs')
-rw-r--r--Ryujinx.Core/OsHle/SystemStateMgr.cs84
1 files changed, 0 insertions, 84 deletions
diff --git a/Ryujinx.Core/OsHle/SystemStateMgr.cs b/Ryujinx.Core/OsHle/SystemStateMgr.cs
deleted file mode 100644
index 0756c7d1..00000000
--- a/Ryujinx.Core/OsHle/SystemStateMgr.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;
-
-namespace Ryujinx.Core.OsHle
-{
- public class SystemStateMgr
- {
- internal static string[] LanguageCodes = new string[]
- {
- "ja",
- "en-US",
- "fr",
- "de",
- "it",
- "es",
- "zh-CN",
- "ko",
- "nl",
- "pt",
- "ru",
- "zh-TW",
- "en-GB",
- "fr-CA",
- "es-419",
- "zh-Hans",
- "zh-Hant"
- };
-
- internal static string[] AudioOutputs = new string[]
- {
- "AudioTvOutput",
- "AudioStereoJackOutput",
- "AudioBuiltInSpeakerOutput"
- };
-
- internal long DesiredLanguageCode { get; private set; }
-
- internal string ActiveAudioOutput { get; private set; }
-
- public SystemStateMgr()
- {
- SetLanguage(SystemLanguage.AmericanEnglish);
-
- SetAudioOutputAsBuiltInSpeaker();
- }
-
- public void SetLanguage(SystemLanguage Language)
- {
- DesiredLanguageCode = GetLanguageCode((int)Language);
- }
-
- public void SetAudioOutputAsTv()
- {
- ActiveAudioOutput = AudioOutputs[0];
- }
-
- public void SetAudioOutputAsStereoJack()
- {
- ActiveAudioOutput = AudioOutputs[1];
- }
-
- public void SetAudioOutputAsBuiltInSpeaker()
- {
- ActiveAudioOutput = AudioOutputs[2];
- }
-
- internal static long GetLanguageCode(int Index)
- {
- if ((uint)Index >= LanguageCodes.Length)
- {
- throw new ArgumentOutOfRangeException(nameof(Index));
- }
-
- long Code = 0;
- int Shift = 0;
-
- foreach (char Chr in LanguageCodes[Index])
- {
- Code |= (long)(byte)Chr << Shift++ * 8;
- }
-
- return Code;
- }
- }
-} \ No newline at end of file