SND\AstrorEnales_cp 1cebf6f91e - Introduced new MediaSystem creator (handling the whole Media namespace)
- Made the plugin handling internally way simpler (no tons of duplicated code anymore)
- Added empty MediaSystem to have a default for now (Windows.OpenAL)
- Added a PercentageCompleteAttribute which will be used to mark the current state of a class (0-100%)
2012-02-15 19:48:46 +00:00

41 lines
1.1 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.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();
}
}
}
}
#endif
}