public MacGamePlatform(Game game) :
base(game)
{
_state = RunState.NotStarted;
game.Services.AddService(typeof(MacGamePlatform), this);
// Setup our OpenALSoundController to handle our SoundBuffer pools
soundControllerInstance = OpenALSoundController.GetInstance;
InitializeMainWindow();
var path = NSBundle.MainBundle.ResourcePath;
if (Directory.Exists(path)) {
// We set the current directory to the ResourcePath on Mac
Directory.SetCurrentDirectory(NSBundle.MainBundle.ResourcePath);
}
}