Ejemplo n.º 1
0
		static void Main( string[] args )
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault( false );

			Host host = new Host( args );
			Application.Run( host.Player );
		}
Ejemplo n.º 2
0
        public Instance( Host host, EmulationParameters parameters, bool suppressXmb )
        {
            Debug.Assert( host != null );
            Debug.Assert( parameters != null );

            _host = host;
            _params = parameters;

            _switchToXmb = !suppressXmb;
        }
Ejemplo n.º 3
0
        public Player( Host host )
            : this()
        {
            _host = host;

            this.Icon = Properties.Resources.PspIcon;

            _widthPadding = this.Width - 480;
            _heightPadding = this.Height - 272;
        }
Ejemplo n.º 4
0
        public IssueReport( Host host, List<ComponentIssue> issues )
            : this()
        {
            Debug.Assert( host != null );
            Debug.Assert( issues != null );
            Debug.Assert( issues.Count > 0 );

            _host = host;
            _issues = issues;

            imageList.Images.Add( "error", Properties.Resources.ErrorIcon );
            imageList.Images.Add( "warning", Properties.Resources.WarningIcon );

            dontShowWarningsCheckBox.Checked = !Properties.Settings.Default.ShowReportOnWarnings;

            int errorCount = 0;
            int warningCount = 0;
            foreach( ComponentIssue issue in issues )
            {
                if( issue.Level == IssueLevel.Error )
                    errorCount++;
                else if( issue.Level == IssueLevel.Warning )
                    warningCount++;
            }

            if( errorCount == 0 )
            {
                continuePictureBox.Image = Properties.Resources.WarningIcon;
                continueLabel.Text = "No errors found, but the emulator might not work correctly until the issues are fixed.";
                this.continueButton.Enabled = true;
            }
            else
            {
                continuePictureBox.Image = Properties.Resources.ErrorIcon;
                continueLabel.Text = "Errors found, you will not be able to continue until they have been fixed.";
                this.continueButton.Enabled = false;
            }

            foreach( ComponentIssue issue in issues )
            {
                ListViewItem item = new ListViewItem();
                if( issue.Level == IssueLevel.Error )
                {
                    item.Group = listView.Groups[ "errorsGroup" ];
                    item.ImageKey = "error";
                }
                else
                {
                    item.Group = listView.Groups[ "warningsGroup" ];
                    item.ImageKey = "warning";
                }
                item.UseItemStyleForSubItems = false;
                item.Text = issue.Message;
                if( issue.SupportUrl != null )
                {
                    ListViewItem.ListViewSubItem subItem = new ListViewItem.ListViewSubItem();
                    subItem.Text = "View Link";
                    subItem.Font = new Font( listView.Font, FontStyle.Underline );
                    subItem.ForeColor = SystemColors.HotTrack;
                    item.SubItems.Add( subItem );
                }
                item.Tag = issue;
                listView.Items.Add( item );
            }
        }