diff --git a/EnvClasses.cs b/EnvClasses.cs index a0128e3..6285b8c 100644 --- a/EnvClasses.cs +++ b/EnvClasses.cs @@ -1,4 +1,4 @@ -// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 +// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 // WindowsPhoneSpeedyBlupi.Def using static WindowsPhoneSpeedyBlupi.EnvClasses; diff --git a/Game1.cs b/Game1.cs index b94015c..d758609 100644 --- a/Game1.cs +++ b/Game1.cs @@ -112,7 +112,9 @@ namespace WindowsPhoneSpeedyBlupi if (Env.IMPL.isNotKNI() && !TouchPanel.GetCapabilities().IsConnected) { this.IsMouseVisible = true; + #if !FNA Mouse.SetCursor(MouseCursor.Arrow); + #endif } graphics = new GraphicsDeviceManager(this); diff --git a/InputPad.cs b/InputPad.cs index 882dad6..9f05eb8 100644 --- a/InputPad.cs +++ b/InputPad.cs @@ -186,7 +186,7 @@ namespace WindowsPhoneSpeedyBlupi } } /// - /// Returns the point of the cente of the pad on the screen. + /// Returns the point of the center of the pad on the screen. /// private TinyPoint PadCenter { diff --git a/Worlds.cs b/Worlds.cs index 70bbb14..545de54 100644 --- a/Worlds.cs +++ b/Worlds.cs @@ -66,7 +66,7 @@ namespace WindowsPhoneSpeedyBlupi { return null; } - return text.Split("\n"); + return text.Split('\n'); } private static string GetWorldFilename(int gamer, int rank) @@ -79,7 +79,7 @@ namespace WindowsPhoneSpeedyBlupi Debug.WriteLine("ReadGameData"); #if !(KNI && WEB) - IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); + IsolatedStorageFile userStoreForApplication = getUserStoreForApplication(); if (userStoreForApplication.FileExists(GameDataFilename)) { IsolatedStorageFileStream isolatedStorageFileStream = null; @@ -120,7 +120,7 @@ namespace WindowsPhoneSpeedyBlupi #if !(KNI && WEB) - IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); + IsolatedStorageFile userStoreForApplication = getUserStoreForApplication(); IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Create); if (isolatedStorageFileStream != null) { @@ -138,7 +138,7 @@ namespace WindowsPhoneSpeedyBlupi #if !KNI - IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); + IsolatedStorageFile userStoreForApplication = getUserStoreForApplication(); try { userStoreForApplication.DeleteFile(CurrentGameFilename); @@ -157,7 +157,7 @@ namespace WindowsPhoneSpeedyBlupi { Debug.WriteLine("ReadCurrentGame"); #if !(KNI && WEB) - IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); + IsolatedStorageFile userStoreForApplication = getUserStoreForApplication(); if (userStoreForApplication.FileExists(CurrentGameFilename)) { IsolatedStorageFileStream isolatedStorageFileStream = null; @@ -188,7 +188,7 @@ namespace WindowsPhoneSpeedyBlupi { Debug.WriteLine("WriteCurrentGame"); #if !(KNI && WEB) - IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); + IsolatedStorageFile userStoreForApplication = getUserStoreForApplication(); IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Create); if (isolatedStorageFileStream != null) { @@ -200,6 +200,12 @@ namespace WindowsPhoneSpeedyBlupi #endif } +private static IsolatedStorageFile getUserStoreForApplication() { + if(Env.IMPL.isFNA()) { + return IsolatedStorageFile.GetUserStoreForAssembly(); + } + return IsolatedStorageFile.GetUserStoreForApplication(); +} public static void GetIntArrayField(string[] lines, string section, int rank, string name, int[] array) { foreach (string text in lines)