diff --git a/Assembly-CSharp/PhoneInterface.cs b/Assembly-CSharp/PhoneInterface.cs index 59203f3..c5a9e5e 100644 --- a/Assembly-CSharp/PhoneInterface.cs +++ b/Assembly-CSharp/PhoneInterface.cs @@ -300,6 +300,7 @@ public static void ClearGameData(bool keepMonsters) string_dic.Clear(); StoreInfo("version", version); StoreInfoInt("tried_tutorial"); + StoreInfoInt("speedrun_mode"); StoreInfo("volume_master", 0.75f); StoreInfo("volume_menu", 1f); StoreInfo("volume_ring", 1f); @@ -343,6 +344,23 @@ public static void ClearGameData(bool keepMonsters) } } + + + private static void StoreInfo(string pref_name, int default_val) + { + int_dic.Add(pref_name, PlayerPrefs.GetInt(pref_name, default_val)); + } + + private static void StoreInfo(string pref_name, float default_val) + { + float_dic.Add(pref_name, PlayerPrefs.GetFloat(pref_name, default_val)); + } + + private static void StoreInfo(string pref_name, string default_val) + { + string_dic.Add(pref_name, PlayerPrefs.GetString(pref_name, default_val)); + } + private static void StoreInfoInt(string pref_name) { if (PlayerPrefs.HasKey(pref_name)) @@ -351,11 +369,6 @@ private static void StoreInfoInt(string pref_name) } } - private static void StoreInfo(string pref_name, int default_val) - { - int_dic.Add(pref_name, PlayerPrefs.GetInt(pref_name, default_val)); - } - private static void StoreInfoFloat(string pref_name) { if (PlayerPrefs.HasKey(pref_name)) @@ -364,11 +377,6 @@ private static void StoreInfoFloat(string pref_name) } } - private static void StoreInfo(string pref_name, float default_val) - { - float_dic.Add(pref_name, PlayerPrefs.GetFloat(pref_name, default_val)); - } - private static void StoreInfoString(string pref_name) { if (PlayerPrefs.HasKey(pref_name)) @@ -377,11 +385,6 @@ private static void StoreInfoString(string pref_name) } } - private static void StoreInfo(string pref_name, string default_val) - { - string_dic.Add(pref_name, PlayerPrefs.GetString(pref_name, default_val)); - } - private void Awake() { if (_instance == null) diff --git a/dist/zinethCE_Data/Managed/Assembly-CSharp.dll b/dist/zinethCE_Data/Managed/Assembly-CSharp.dll index e28fd17..9c85fb2 100644 Binary files a/dist/zinethCE_Data/Managed/Assembly-CSharp.dll and b/dist/zinethCE_Data/Managed/Assembly-CSharp.dll differ diff --git a/dist/zinethCE_Data/Managed/Assembly-UnityScript-firstpass.dll b/dist/zinethCE_Data/Managed/Assembly-UnityScript-firstpass.dll index 927bb1a..70e68de 100644 Binary files a/dist/zinethCE_Data/Managed/Assembly-UnityScript-firstpass.dll and b/dist/zinethCE_Data/Managed/Assembly-UnityScript-firstpass.dll differ diff --git a/dist/zinethCE_Data/Managed/Assembly-UnityScript.dll b/dist/zinethCE_Data/Managed/Assembly-UnityScript.dll index 53ec4b0..9eabb39 100644 Binary files a/dist/zinethCE_Data/Managed/Assembly-UnityScript.dll and b/dist/zinethCE_Data/Managed/Assembly-UnityScript.dll differ