Glatzemann aa75450b34 - added samples to build file
- improved error handling and logging during AddIn loading
2012-08-29 18:29:57 +00:00

39 lines
1.1 KiB
C#

using System;
using ANX.Framework.NonXNA;
using System.Windows.Forms;
namespace WindowsGame1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
Application.EnableVisualStyles();
AddInSystemFactory.Instance.Initialize();
AddInSelector selector = new AddInSelector();
if (selector.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
AddInSystemFactory.Instance.SetPreferredSystem(
AddInType.RenderSystem, selector.cbRenderSystem.Text);
AddInSystemFactory.Instance.SetPreferredSystem(
AddInType.SoundSystem, selector.cbAudioSystem.Text);
AddInSystemFactory.Instance.SetPreferredSystem(
AddInType.InputSystem, selector.cbInputSystem.Text);
using (Game1 game = new Game1())
{
game.Run();
}
}
}
}
}