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>2018-02-14 00:22:16 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-14 00:22:16 +0300
commit6dfed02838c04e499e287dcc32c15e655664283d (patch)
tree26774f200eeb1af3af38a45e4207c198560b04fe /MainForm.cs
parent1923b2d55a0266c945364764df4e1d97b402c4d9 (diff)
Many changes, updated to madmonkey's hakchi, zImage support, USB host support
Diffstat (limited to 'MainForm.cs')
-rw-r--r--MainForm.cs19
1 files changed, 13 insertions, 6 deletions
diff --git a/MainForm.cs b/MainForm.cs
index 6f79db79..ec16f3ca 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -403,10 +403,17 @@ namespace com.clusterrr.hakchi_gui
maskedTextBoxReleaseDate.Text = app.ReleaseDate;
textBoxPublisher.Text = app.Publisher;
textBoxArguments.Text = app.Command;
- if (File.Exists(app.IconPath))
- pictureBoxArt.Image = NesMiniApplication.LoadBitmap(app.IconPath);
- else
- pictureBoxArt.Image = null;
+ try
+ {
+ if (File.Exists(app.IconPath))
+ pictureBoxArt.Image = NesMiniApplication.LoadBitmap(app.IconPath);
+ else
+ pictureBoxArt.Image = null;
+ }
+ catch (Exception ex)
+ {
+ Debug.WriteLine("Image loading error: " + ex.Message + ex.StackTrace);
+ }
buttonShowGameGenieDatabase.Enabled = app is NesGame; //ISupportsGameGenie;
textBoxGameGenie.Enabled = app is ISupportsGameGenie;
textBoxGameGenie.Text = (app is ISupportsGameGenie) ? (app as NesMiniApplication).GameGenie : "";
@@ -989,9 +996,9 @@ namespace com.clusterrr.hakchi_gui
workerForm.Config = ConfigIni.GetConfigDictionary();
workerForm.Games = new NesMenuCollection();
workerForm.exportGames = exportGames;
-
+
if (exportGames)
- workerForm.exportDirectory = exportFolderDialog.SelectedPath;
+ workerForm.exportDirectory = Path.Combine(Path.Combine(exportFolderDialog.SelectedPath, "hakchi"), "games");
bool needOriginal = false;
foreach (ListViewItem game in listViewGames.CheckedItems)