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-03-05 10:49:07 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-03-05 10:49:07 +0300
commit8aee67b69c23a11ebdac6858466bf3bec8cd6b27 (patch)
tree57705f6288636e9f532eae9604719f4649e25ba3 /WorkerForm.cs
parent4aad5a45b8bc895a83a6b112cc726bc5e5d1d520 (diff)
Fixed Game Genie error bug
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs
index 6dd2fa5e..740be299 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -276,9 +276,7 @@ namespace com.clusterrr.hakchi_gui
message += ex.StackTrace;
#endif
Debug.WriteLine(ex.Message + ex.StackTrace);
- if (ex is GameGenieFormatException || ex is GameGenieNotFoundException)
- MessageBox.Show(this, message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
- else if (ex is MadWizard.WinUSBNet.USBException)
+ if (ex is MadWizard.WinUSBNet.USBException)
MessageBox.Show(this, message + "\r\n" + Resources.PleaseTryAgainUSB, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
else
MessageBox.Show(this, message, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
@@ -797,11 +795,11 @@ namespace com.clusterrr.hakchi_gui
}
catch (GameGenieFormatException ex)
{
- ShowError(new GameGenieFormatException(string.Format(Resources.GameGenieFormatError, ex.Code, game)), dontStop: true);
+ ShowError(new Exception(string.Format(Resources.GameGenieFormatError, ex.Code, game.Name)), dontStop: true);
}
catch (GameGenieNotFoundException ex)
{
- ShowError(new GameGenieNotFoundException(string.Format(Resources.GameGenieNotFound, ex.Code, game.Name)), dontStop: true);
+ ShowError(new Exception(string.Format(Resources.GameGenieNotFound, ex.Code, game.Name)), dontStop: true);
}
}
if (element is NesMenuFolder)