コード例 #1
0
ファイル: RenderProcess.cs プロジェクト: yinwuu/openrails
 internal void Draw()
 {
     if (Debugger.IsAttached)
     {
         CurrentFrame.Draw(Game.GraphicsDevice);
     }
     else
     {
         try
         {
             CurrentFrame.Draw(Game.GraphicsDevice);
         }
         catch (Exception error)
         {
             Game.ProcessReportError(error);
         }
     }
 }
コード例 #2
0
 bool DoSound()
 {
     if (Debugger.IsAttached)
     {
         Sound();
     }
     else
     {
         try
         {
             Sound();
         }
         catch (Exception error)
         {
             // Unblock anyone waiting for us, report error and die.
             State.SignalTerminate();
             Game.ProcessReportError(error);
             return(false);
         }
     }
     return(true);
 }