diff options
| author | lempamo <[email protected]> | 2017-04-05 21:57:09 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-05 21:57:09 -0400 |
| commit | 07376e9ecd6687b2c4278661d0eaf3795d5124c3 (patch) | |
| tree | 76c1d65a001044251162351de788ba242dfe56de /ShiftOS_TheReturn | |
| parent | c8f7cd286327a70280a7db132e45943b44273235 (diff) | |
| download | shiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.tar.gz shiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.tar.bz2 shiftos_thereturn-07376e9ecd6687b2c4278661d0eaf3795d5124c3.zip | |
language selection screen!
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Localization.cs | 14 | ||||
| -rw-r--r-- | ShiftOS_TheReturn/SaveSystem.cs | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/Localization.cs b/ShiftOS_TheReturn/Localization.cs index de5e158..a9d24b8 100644 --- a/ShiftOS_TheReturn/Localization.cs +++ b/ShiftOS_TheReturn/Localization.cs @@ -37,6 +37,7 @@ namespace ShiftOS.Engine { List<string> GetJSONTranscripts(); void WriteDefaultTranscript(); + void WriteTranscript(); string GetCurrentTranscript(); string[] GetAllLanguages(); } @@ -44,6 +45,7 @@ namespace ShiftOS.Engine public static class Localization { private static ILanguageProvider _provider = null; + private static string _languageid = null; public static string[] GetAllLanguages() { @@ -67,7 +69,7 @@ namespace ShiftOS.Engine } else { - _provider.WriteDefaultTranscript(); + _provider.WriteTranscript(); } } @@ -197,5 +199,15 @@ namespace ShiftOS.Engine { _provider = p; } + + public static void SetLanguageID(string id) + { + _languageid = id; + } + + public static string GetLanguageID() + { + return _languageid; + } } } diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs index df4c6d6..5188bf1 100644 --- a/ShiftOS_TheReturn/SaveSystem.cs +++ b/ShiftOS_TheReturn/SaveSystem.cs @@ -70,7 +70,7 @@ namespace ShiftOS.Engine root.permissions = Permissions.All; System.IO.File.WriteAllText(Paths.SaveFile, JsonConvert.SerializeObject(root)); } - + CurrentSave.Language = Localization.GetLanguageID(); if (Utils.Mounts.Count == 0) Utils.Mount(System.IO.File.ReadAllText(Paths.SaveFile)); |
