2011-10-31 05:36:24 +00:00
|
|
|
using System;
|
|
|
|
using System.Windows.Forms;
|
2012-09-15 13:43:31 +00:00
|
|
|
using ANX.Framework.NonXNA;
|
2011-10-31 05:36:24 +00:00
|
|
|
|
|
|
|
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)
|
2012-09-15 13:43:31 +00:00
|
|
|
{
|
|
|
|
AddInSystemFactory.Instance.SetPreferredSystem(AddInType.RenderSystem, selector.cbRenderSystem.Text);
|
|
|
|
AddInSystemFactory.Instance.SetPreferredSystem(AddInType.SoundSystem, selector.cbAudioSystem.Text);
|
2015-10-18 13:37:39 +02:00
|
|
|
InputDeviceFactory.Instance.PrefferedProvider = selector.cbInputSystem.Text;
|
2011-12-06 09:11:26 +00:00
|
|
|
|
|
|
|
using (Game1 game = new Game1())
|
2011-10-31 05:36:24 +00:00
|
|
|
{
|
|
|
|
game.Run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|