예제 #1
0
 public static void Main()
 {
     {
         try
         {
             using (var game = new ShadowMap())
             {
                 game.Run(0, 0);
             }
         }
         catch (Exception exception)
         {
             var path = Path.Combine(Environment.CurrentDirectory, "error_file.txt");
             File.Delete(path);
             File.AppendAllText(path, exception.Message, Encoding.Unicode);
             File.AppendAllText(path, exception.StackTrace, Encoding.Unicode);
             Process.Start("error_file.txt");
         }
     }
 }
예제 #2
0
 public static void Main()
 {
     {
         try
         {
             using (var game = new ShadowMap())
             {
                 game.Run(0, 0);
             }
         }
         catch (Exception exception)
         {
             var path = Path.Combine(Environment.CurrentDirectory, "error_file.txt");
             File.Delete(path);
             File.AppendAllText(path, exception.Message, Encoding.Unicode);
             File.AppendAllText(path, exception.StackTrace, Encoding.Unicode);
             Process.Start("error_file.txt");
         }
     }
 }