diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-10 10:17:00 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-10 10:17:00 +0300 |
commit | c69fe813667edb0c3161c00ec3adfddaced2e375 (patch) | |
tree | 7ae9e32130722cb5927cbdc52de9480a95cde51f /MainForm.cs | |
parent | d54bdf45f08e0772eb53de7ea2e18b69924804b2 (diff) |
Added GameGenie for SNES but it glitchy and commented out
Diffstat (limited to 'MainForm.cs')
-rw-r--r-- | MainForm.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/MainForm.cs b/MainForm.cs index 014fd492..512ed1d4 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -418,8 +418,9 @@ namespace com.clusterrr.hakchi_gui pictureBoxArt.Image = NesMiniApplication.LoadBitmap(app.IconPath);
else
pictureBoxArt.Image = null;
- buttonShowGameGenieDatabase.Enabled = textBoxGameGenie.Enabled = app is ISupportsGameGenie;
- textBoxGameGenie.Text = (app is ISupportsGameGenie) ? (app as ISupportsGameGenie).GameGenie : "";
+ buttonShowGameGenieDatabase.Enabled = app is NesGame; //ISupportsGameGenie;
+ textBoxGameGenie.Enabled = app is ISupportsGameGenie;
+ textBoxGameGenie.Text = (app is ISupportsGameGenie) ? (app as NesMiniApplication).GameGenie : "";
groupBoxOptions.Enabled = true;
if (app.CompressPossible().Count() > 0)
{
@@ -662,8 +663,8 @@ namespace com.clusterrr.hakchi_gui {
if (listViewGames.SelectedItems.Count != 1) return;
var selected = listViewGames.SelectedItems[0].Tag;
- if (selected == null || !(selected is NesGame)) return;
- var game = (selected as NesGame);
+ if (selected == null || !(selected is NesMiniApplication)) return;
+ var game = (selected as NesMiniApplication);
game.GameGenie = textBoxGameGenie.Text;
}
@@ -1456,7 +1457,7 @@ namespace com.clusterrr.hakchi_gui NesMiniApplication nesGame = selected as NesMiniApplication;
GameGenieCodeForm lFrm = new GameGenieCodeForm(nesGame);
if (lFrm.ShowDialog() == DialogResult.OK)
- textBoxGameGenie.Text = (nesGame as ISupportsGameGenie).GameGenie;
+ textBoxGameGenie.Text = (nesGame as NesMiniApplication).GameGenie;
}
private void pagesModefoldersToolStripMenuItem_Click(object sender, EventArgs e)
|