Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-10 10:17:00 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-10 10:17:00 +0300
commitc69fe813667edb0c3161c00ec3adfddaced2e375 (patch)
tree7ae9e32130722cb5927cbdc52de9480a95cde51f /MainForm.cs
parentd54bdf45f08e0772eb53de7ea2e18b69924804b2 (diff)
Added GameGenie for SNES but it glitchy and commented out
Diffstat (limited to 'MainForm.cs')
-rw-r--r--MainForm.cs11
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)