private void btnLaunch_Click(object sender, EventArgs e) { if (!(cbxGames.Text == "")) { postpatch patchpost = new postpatch(); patchpost.copyDol(Properties.Settings.Default.wiigamespath + "/rii/" + Path.GetFileNameWithoutExtension(cbxGames.Text), Properties.Settings.Default.wiigamespath + "/" + cbxGames.Text); } }
public void checkIfDecompiled(string gamespath, ComboBox cbx, Button btnDecompiled, Button btnOpenPatch, Button btnLaunch, PictureBox pbxBoxart, PictureBox pbxRegion) { if (Directory.Exists(gamespath + "/rii/" + Path.GetFileNameWithoutExtension(cbx.Text))) // if the game's mod folder already exists, { btnDecompiled.Enabled = true; btnDecompiled.Text = "Reset"; btnOpenPatch.Enabled = true; btnLaunch.Enabled = true; } else // if not, do the same but in reverse { btnDecompiled.Enabled = true; btnDecompiled.Text = "Decompile"; btnOpenPatch.Enabled = false; btnLaunch.Enabled = false; } extras boxartyay = new extras(); // initialize the right shenanigans postpatch hex = new postpatch(); boxartyay.getboxart(generateGameID(gamespath + "/" + cbx.Text), pbxBoxart, pbxRegion); // grab the boxart and region (I like this feature so much omg) }