示例#1
0
        private void CbSelectedGame_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CemuWatch.DontSelectGame)
            {
                return;
            }

            string selected = cbSelectedGame.SelectedItem.ToString();

            if (selected == "Autodetect")
            {
                CemuWatch.Start();
                return;
            }

            if (!CemuWatch.SelectGame(selected))
            {
                cbSelectedGame.SelectedIndex = 0;
                return;
            }

            if (!VanguardCore.vanguardStarted)
            {
                VanguardCore.Start();
            }
            else if (VanguardCore.vanguardConnected)
            {
                CemuWatch.UpdateDomains();
            }
        }
示例#2
0
        private void StubForm_Load(object sender, EventArgs e)
        {
            cbSelectedGame.SelectedIndex = 0;
            CemuWatch.LoadKnownGames();

            Colors.SetRTCColor(Color.LightSteelBlue, this);
            lbTargetVersion.Focus();
        }
示例#3
0
        private void BtnSettings_MouseDown(object sender, MouseEventArgs e)
        {
            Point locate = new Point(((Control)sender).Location.X + e.Location.X, ((Control)sender).Location.Y + e.Location.Y);

            FileInfo cemuExeFile = null;

            if (CemuWatch.currentGameInfo != null && CemuWatch.currentGameInfo.gameName != "Autodetect")
            {
                cemuExeFile = CemuWatch.currentGameInfo.cemuExeFile;
            }
            else if (CemuWatch.knownGamesDico.Values.Count > 0)
            {
                cemuExeFile = CemuWatch.knownGamesDico.Values.First().cemuExeFile;
            }

            ContextMenuStrip loadMenuItems = new ContextMenuStrip();

            loadMenuItems.Items.Add("Start Cemu", null, new EventHandler((ob, ev) =>
            {
                CemuWatch.StartCemu();
            })).Visible = (cemuExeFile != null);

            var startRpxItem = loadMenuItems.Items.Add("Manually start Rpx", null, new EventHandler((ob, ev) =>
            {
                CemuWatch.StartRpx();
            }));

            startRpxItem.Visible = (cemuExeFile != null);
            startRpxItem.Enabled = CemuWatch.InterfaceEnabled;


            loadMenuItems.Items.Add("Reconstruct fake update", null, new EventHandler((ob, ev) =>
            {
                CemuWatch.PrepareUpdateFolder(true);
            })).Enabled = CemuWatch.InterfaceEnabled;

            loadMenuItems.Items.Add("Change Cemu location", null, new EventHandler((ob, ev) =>
            {
                CemuWatch.ChangeCemuLocation();
            })).Enabled = CemuWatch.InterfaceEnabled;

            loadMenuItems.Items.Add(new ToolStripSeparator());

            loadMenuItems.Items.Add("Unmod selected Game", null, new EventHandler((ob, ev) =>
            {
                CemuWatch.UnmodGame();
            })).Enabled = CemuWatch.InterfaceEnabled;

            loadMenuItems.Items.Add(new ToolStripSeparator());
            loadMenuItems.Items.Add("Toggle Cemu version override", null, new EventHandler((ob, ev) =>
            {
                lbTargetVersion.Visible   = !lbTargetVersion.Visible;
                tbExpectedVersion.Visible = !tbExpectedVersion.Visible;
            }));

            loadMenuItems.Show(this, locate);
        }
示例#4
0
        private void BtnResetBackup_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Resetting the backup will take the current rpx and promote it to backup. Do you want to continue?", "Reset Backup", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
            {
                CemuWatch.ResetBackup();
            }

            FileInterface.CompositeFilenameDico = new Dictionary <string, string>();
            FileInterface.SaveCompositeFilenameDico();
        }
示例#5
0
 private void BtnRestoreBackup_Click(object sender, EventArgs e)
 {
     CemuWatch.RestoreBackup();
 }