Nexus.Client.ModManagement.Scripting.ModScript.ModScriptInterpreterContext.LoadEarly C# (CSharp) Method

LoadEarly() public method

Ensures that the given plugin is loaded early in the load order.
public LoadEarly ( string p_strPlugin ) : void
p_strPlugin string The plugin to load early.
return void
		public void LoadEarly(string p_strPlugin)
		{
			string strLoad = Path.GetFileName(p_strPlugin);
			string[] strFiles = FunctionProxy.GetModFileList();
			if (!strFiles.Contains(x => x.Equals(strLoad, StringComparison.OrdinalIgnoreCase)))
				return;
			m_lstPluginOrder.Remove(p_strPlugin);
			m_lstPluginOrder.Insert(0, strLoad);
		}