Example #1
0
 protected virtual bool ShowMissingRequirementMessage(Exception exception)
 {
     if (exception is NoAudioHardwareException)
     {
         FNAPlatform.ShowRuntimeError(
             Window.Title,
             "Could not find a suitable audio device. " +
             " Verify that a sound card is\ninstalled," +
             " and check the driver properties to make" +
             " sure it is not disabled."
             );
         return(true);
     }
     if (exception is NoSuitableGraphicsDeviceException)
     {
         FNAPlatform.ShowRuntimeError(
             Window.Title,
             "Could not find a suitable graphics device." +
             " More information:\n\n" + exception.Message
             );
         return(true);
     }
     return(false);
 }