aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-18 19:27:39 -0600
committerAShifter <[email protected]>2017-05-18 19:27:44 -0600
commit5967c0fc3616fe14656f985e8871489ba03cfd10 (patch)
treee0c26100e72963c990105204f4b23a19ba0fe09a /ShiftOS_TheReturn
parent0937c68e19d73360b6d5f3c9e50c73fb966d4508 (diff)
downloadshiftos_thereturn-5967c0fc3616fe14656f985e8871489ba03cfd10.tar.gz
shiftos_thereturn-5967c0fc3616fe14656f985e8871489ba03cfd10.tar.bz2
shiftos_thereturn-5967c0fc3616fe14656f985e8871489ba03cfd10.zip
Start work on TriPresent
It's in a basic state right now, and I also fixed a launch bug for people with slightly older ``ShiftOS.mfs`` files (in Localization.cs).
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Localization.cs20
1 files changed, 18 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/Localization.cs b/ShiftOS_TheReturn/Localization.cs
index 89d3582..2c701c9 100644
--- a/ShiftOS_TheReturn/Localization.cs
+++ b/ShiftOS_TheReturn/Localization.cs
@@ -167,8 +167,24 @@ namespace ShiftOS.Engine
// if the user has saved then store their username and systemname in these string variables please
if (SaveSystem.CurrentSave != null)
{
- usernameReplace = SaveSystem.CurrentUser.Username;
- domainReplace = SaveSystem.CurrentSave.SystemName;
+ try
+ {
+ usernameReplace = SaveSystem.CurrentUser.Username;
+ }
+ catch
+ {
+ usernameReplace = "user";
+ }
+
+ try
+ {
+ domainReplace = SaveSystem.CurrentSave.SystemName;
+ }
+ catch
+ {
+ domainReplace = "system";
+ }
+
}
string namespaceReplace = "";