Beispiel #1
0
 /// <summary>
 /// Prevents a default instance of the <see cref="EngineCore" /> class from being created
 /// </summary>
 private EngineCore()
 {
     this.Processes = new ProcessAdapter();
     this.OperatingSystemAdapter = OperatingSystemAdapterFactory.GetOperatingSystemAdapter();
     this.Architecture           = ArchitectureFactory.GetArchitecture();
     this.Input = new InputManager();
 }
Beispiel #2
0
        /// <summary>
        /// Prevents a default instance of the <see cref="EngineCore" /> class from being created.
        /// </summary>
        private EngineCore()
        {
            this.Processes     = ProcessAdapterFactory.GetProcessAdapter();
            this.VirtualMemory = VirtualMemoryAdapterFactory.GetVirtualMemoryAdapter();
            this.Network       = new Network();
            this.Architecture  = ArchitectureFactory.GetArchitecture();
            this.Input         = new InputManager();

            this.StartBackgroundServices();
        }
Beispiel #3
0
        /// <summary>
        /// Prevents a default instance of the <see cref="EngineCore" /> class from being created.
        /// </summary>
        private EngineCore()
        {
            this.Processes     = ProcessAdapterFactory.GetProcessAdapter();
            this.VirtualMemory = VirtualMemoryAdapterFactory.GetVirtualMemoryAdapter();
            this.Debugger      = DebuggerFactory.GetDebugger();
            this.Graphics      = new GraphicsAdapter();
            this.Network       = new Network();
            this.Architecture  = ArchitectureFactory.GetArchitecture();
            this.Input         = new InputManager();

            if (this.Architecture.HasVectorSupport())
            {
                OutputViewModel.GetInstance().Log(OutputViewModel.LogLevel.Info, "Hardware acceleration enabled");
                OutputViewModel.GetInstance().Log(OutputViewModel.LogLevel.Info, "Vector size: " + System.Numerics.Vector <Byte> .Count);
            }

            this.StartBackgroundServices();
        }