/// <summary> /// Load setings data from saved file. /// </summary> public static void LoadFromSavedFile() { if (_instance != null) { _instance.LoadPluginData(); } }
/// <summary> /// Create new instance if none found. /// Loads plugin data from file. /// </summary> public static void InstantiateAndLoad() { if (_instance == null) { _instance = new HEU_PluginStorage(); _instance.LoadPluginData(); HEU_SessionManager.LoadAllSessionData(); } }
/// <summary> /// Create new instance if none found. /// Loads plugin data from file. /// </summary> public static void InstantiateAndLoad() { if (_instance == null) { _instance = new HEU_PluginStorage(); _instance.LoadPluginData(); // Set the current culture based on user plugin setting. By default (fresh install) // this sets to InvariantCulture to fix decimal parsing issues on certain locales (like es-ES). // Note that this sets for the entire project as long as the plugin is in use. // Users can turn this off from Plugin Settings. SetCurrentCulture(HEU_PluginSettings.SetCurrentThreadToInvariantCulture); HEU_SessionManager.LoadAllSessionData(); _instance.LoadAssetEnvironmentPaths(); } }