source: 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Program.cs @ 4749

Revision 4749, 669 bytes checked in by dezhidki, 8 years ago (diff)

Yksinkertainen virheiden loggaus (tallentee virheitä logs kansioon)
Kaupassa voi nyt myydä kaikki puut kerralla
Lisätty tarkemmat ohjeet Game.cs:ään

Line 
1
2using CastleMaster.Errors;
3using System;
4namespace CastleMaster
5{
6#if WINDOWS || XBOX
7    static class Program
8    {
9        /// <summary>
10        /// The main entry point for the application.
11        /// </summary>
12        static void Main(string[] args)
13        {
14            try
15            {
16                using (Game game = new Game())
17                {
18                    game.Run();
19                }
20            }
21            catch (Exception e)
22            {
23                MrsMarple.LogError(e, "An error has occured:", NamePreferences.DATETIME);
24                Environment.Exit(1);
25            }
26        }
27    }
28#endif
29}
30
Note: See TracBrowser for help on using the repository browser.