36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using ANX.Framework.NonXNA;
|
|
using System.Windows.Forms;
|
|
|
|
namespace WindowsGame1
|
|
{
|
|
#if WINDOWS || XBOX
|
|
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.PreferredRenderSystem = selector.cbRenderSystem.Text;
|
|
AddInSystemFactory.Instance.PreferredSoundSystem = selector.cbAudioSystem.Text;
|
|
AddInSystemFactory.Instance.PreferredInputSystem = selector.cbInputSystems.CheckedItems[0].ToString();
|
|
|
|
using (Game1 game = new Game1())
|
|
{
|
|
game.Run();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|