Permalink
Browse files

Merge pull request #1629 from Nezz/wp8_guidethreadfix

Fixed Guide exception on WP8
  • Loading branch information...
2 parents 45cb523 + 68b83f3 commit 887db89fe82e6b3a996476f5e8ed903dbe0aa185 @tomspilman tomspilman committed Apr 7, 2013
Showing with 9 additions and 6 deletions.
  1. +9 −6 MonoGame.Framework/Windows/GamerServices/Guide.cs
@@ -91,18 +91,21 @@ static Guide()
{
#if WINDOWS_STOREAPP
_dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher;
+#elif WINDOWS_PHONE
+ Deployment.Current.Dispatcher.BeginInvoke(() =>
+ {
#endif
#if WINRT
+ var licenseInformation = CurrentApp.LicenseInformation;
+ licenseInformation.LicenseChanged += () => isTrialMode = !licenseInformation.IsActive || licenseInformation.IsTrial;
- var licenseInformation = CurrentApp.LicenseInformation;
- licenseInformation.LicenseChanged += () =>
isTrialMode = !licenseInformation.IsActive || licenseInformation.IsTrial;
+#endif
- isTrialMode = !licenseInformation.IsActive || licenseInformation.IsTrial;
-
-#endif // WINRT
-
+#if WINDOWS_PHONE
+ });
+#endif
}
delegate string ShowKeyboardInputDelegate(

0 comments on commit 887db89

Please sign in to comment.