static void Main(string[] args) { if (args.Length > 0) { if (args[0] == "--sprite-editor") { //Thread t = new Thread(new ThreadStart(GameThread)); //t.Start(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); XnaControlGame.CreateAndShow <SpriteEditorView, SpritePackagesEditor>(); } else if (args[0] == "--map-editor") { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); XnaControlGame.CreateAndShow <MapEditorView, MapEditor>(); } } else { using (var game = new GameCore()) game.Run(); } }
public static void GameThread() { using (var game = new GameCore()) game.Run(); }