예제 #1
0
파일: Machine.cs 프로젝트: TylerCode/Soft64
        public Machine()
        {
            Config.Machine = new ExpandoObject();
            Config.UI      = new ExpandoObject();
            Config.Machine.SystemBootMode = (Int32)BootMode.HLE_IPL;

            m_N64PhysicalMemory = new N64Memory();

            Current   = this;
            DeviceRCP = new RcpProcessor();
            DeviceCPU = new CPUProcessor();
            DevicePIF = new PIFModule();
            MupenHelper.SetMipsCore(DeviceCPU);

            m_CurrentEngine = new SimpleEngine();
            m_CurrentEngine.EngineStatusChanged += m_CurrentEngine_EngineStatusChanged;
        }
예제 #2
0
        public AboutBox()
        {
            try
            {
                InitializeComponent();
                this.Text = String.Format("About {0}", AssemblyTitle);
                this.labelProductName.Text = AssemblyProduct;
                this.labelVersion.Text     = String.Format("Version {0}", AssemblyVersion);
                this.labelCopyright.Text   = AssemblyCopyright;
                this.labelCompanyName.Text = AssemblyCompany;

                EmulatorEngine testEngine = new EmulatorEngine("test", string.Empty, 554);
                this.labelLibVersion.Text = "VLC Library Version: " + testEngine.GetVlcLibraryVersion();
                testEngine.Dispose();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }