Nexus.Client.Games.Morrowind.PluginManagement.Boss.BossSorter.MarshalPluginArray C# (CSharp) Метод

MarshalPluginArray() защищенный Метод

Marshal the given pointer to an array of plugins.
This adjusts the plugin paths to be in the format expected by the mod manager.
protected MarshalPluginArray ( IntPtr p_ptrPluginArray, UInt32 p_uintLength ) : string[]
p_ptrPluginArray System.IntPtr The pointer to the array of plugin names to marshal.
p_uintLength System.UInt32 the length of the array to marshal.
Результат string[]
		protected string[] MarshalPluginArray(IntPtr p_ptrPluginArray, UInt32 p_uintLength)
		{
			if (p_ptrPluginArray == IntPtr.Zero)
				return null;
			string[] strPlugins = null;
			using (StringArrayManualMarshaler ammMarshaler = new StringArrayManualMarshaler("UTF8"))
				strPlugins = ammMarshaler.MarshalNativeToManaged(p_ptrPluginArray, Convert.ToInt32(p_uintLength));
			for (Int32 i = strPlugins.Length - 1; i >= 0; i--)
				strPlugins[i] = Path.Combine(GameMode.PluginDirectory, strPlugins[i]);
			return strPlugins;
		}