|
|
@ -1,5 +1,6 @@ |
|
|
|
using Microsoft.Xna.Framework; |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
|
|
|
|
namespace SemiColinGames { |
|
|
|
|
|
|
@ -38,6 +39,10 @@ namespace SemiColinGames { |
|
|
|
public static class DesktopGLProgram { |
|
|
|
[STAThread] |
|
|
|
static void Main() { |
|
|
|
string path = System.Reflection.Assembly.GetEntryAssembly().Location; |
|
|
|
path = System.IO.Path.GetDirectoryName(path); |
|
|
|
Directory.SetCurrentDirectory(path); |
|
|
|
|
|
|
|
using (var game = new SneakGame()) { |
|
|
|
game.Services.AddService(typeof(IDisplay), new DesktopGLDisplay()); |
|
|
|
game.Run(); |
|
|
|