コード例 #1
0
ファイル: Program.cs プロジェクト: gatekeep/86Box
        /// <summary>
        /// Internal helper to execute the service in forced debug mode.
        /// </summary>
        /// <param name="args"></param>
        private static void ForceDebug(string[] args)
        {
            EmuService svc = new EmuService();

            svc.ForceStartCLI(args);

            Console.WriteLine(">>> Press Q to quit");

            while (Console.ReadKey().KeyChar.ToString().ToUpper() != "Q")
            {
                ;
            }

            svc.ForceStopCLI();
            Environment.Exit(0);
        }
コード例 #2
0
 /**
  * Methods
  */
 /// <summary>
 /// Initializes a new instance of the <see cref="EmuService"/> class.
 /// </summary>
 public EmuService()
 {
     instance    = this;
     ServiceName = _ServiceName;
 }