コード例 #1
0
ファイル: Main.cs プロジェクト: urusai88/wow-emulator-archive
        private static int Main(string[] args)
        {
            Log.logwriter.AutoFlush = true;
            //Log.ClearFile();
            //Log.CheckFile();
            Console.Title           = "!PiCaSsO! Emulator " + World.Version + " by pAbLoPiCaSsO and Blumster";
            Console.CursorVisible   = false;
            Console.ForegroundColor = ConsoleColor.Blue;
            Log.WriteLogWithOneWithoutDate("!PiCaSsO! version {0} Copyright (C) 2006 by !PiCaSsO! Developer team", World.Version);
            Console.ForegroundColor = ConsoleColor.White;
            if (RegistryManager.RegistryManager.ReturnRegistry() == "0")
            {
                MessageBox.Show("This version of !PiCaSsO! is not registred. Your 1 week trial will start now. If you want to buy this program, you can do so on http://PiCaSsOEmu.no-ip.info. If you already have a valid licence key, please type in the console: \"register <key>\"");
            }
            Database.Data.ReadAccounts();
            MainConsole data = new MainConsole();

            BuildAllDlls();
            //Declarations();
            //Database.DataClass.Declarations();


            bool configerror = Config.ReadConfig();

            if (configerror != true)
            {
                Thread.Sleep(5000);
                return(0);
            }
            HTTPServerThread.Start();
            Thread.Sleep(100);
            WorldserverThread.Start();
            Thread.Sleep(300);
            RealmserverThread.Start();
            CommandThread.Start();
            return(1);
        }