Load a mod

To load a mod a driver must be selected and setup.


// Using the MikMod Wrapper Class
public static void Main()
{
	MikMod player;
	player = new MikMod();
	player.Init<WavDriver>("cannon.wav");

	Module mod = null;
	mod =  player.LoadModule("cannon.mod");	
}

// Using the SharpMik static functions directly
public static void Main()
{
	ModDriver.LoadDriver<WavDriver>();
	ModDriver.MikMod_Init("cannon.wav");

	Module mod = null;
	mod = ModuleLoader.Load("cannon.mod");
}

Last edited Oct 9, 2012 at 2:35 PM by TheGouldfish, version 1

Comments

No comments yet.