Browse Source

Allow Marblets to compile and work on iOS.

Dominique Louis 13 years ago
parent
commit
3c02117abd
1 changed files with 3 additions and 4 deletions
  1. 3 4
      StarterKits/iOS/Marblets/Program.cs

+ 3 - 4
StarterKits/iOS/Marblets/Program.cs

@@ -22,13 +22,12 @@ namespace Marblets
 	[Register ("AppDelegate")]
 	class Program : UIApplicationDelegate 
 	{
+		private MarbletsGame game;
 		public override void FinishedLaunching (UIApplication app)
 		{
 			// Fun begins..
-			using (MarbletsGame game = new MarbletsGame())
-            {
-                game.Run();
-            }
+			game = new MarbletsGame();
+            game.Run();
 			
 			//MediaLibrary lib = new MediaLibrary();
 			//object result = lib.Playlists;