Ejemplo n.º 1
0
 public static void Main()
 {
     {
         MagicSettingProvider.Init();
         try
         {
             using (var game = new BusycatorGame {
                 Icon = System.Drawing.Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location)
             })
             {
                 game.Run(0, FPS);
             }
         }
         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");
         }
     }
 }
Ejemplo n.º 2
0
		public static void Main()
		{
			{
				MagicSettingProvider.Init();
				try
				{
					using (var game = new BusycatorGame {Icon = System.Drawing.Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location)})
					{
						game.Run(0, FPS);
					}
				}
				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");
				}
			}
		}