LoadPluginData() public method

Load the saved plugin settings from disk.
public LoadPluginData ( ) : bool
return bool
		/// <summary>
		/// Load setings data from saved file.
		/// </summary>
		public static void LoadFromSavedFile()
		{
			if (_instance != null)
			{
				_instance.LoadPluginData();
			}
		}
示例#2
0
		/// <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();
			}
		}