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:
-rw-r--r--Properties/AssemblyInfo.cs4
-rw-r--r--WorkerForm.cs20
-rw-r--r--hakchi_gui.csproj4
3 files changed, 15 insertions, 13 deletions
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index 162d4265..a4814349 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -33,6 +33,6 @@ using System.Resources;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.20.14")]
-[assembly: AssemblyFileVersion("2.0.20.14")]
+[assembly: AssemblyVersion("2.0.20.15")]
+[assembly: AssemblyFileVersion("2.0.20.15")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
diff --git a/WorkerForm.cs b/WorkerForm.cs
index 032bf92f..ed5e16b5 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -131,12 +131,16 @@ namespace com.clusterrr.hakchi_gui
"5296e64818bf2d1dbdc6b594f3eefd17", // SNES Mini (USA)
"228967ab1035a347caa9c880419df487", // SNES Mini (USA)
};
- correctKernels[MainForm.ConsoleType.SuperFamicom] = new string[]
+ correctKernels[MainForm.ConsoleType.SuperFamicom] = new string[]
{
"632e179db63d9bcd42281f776a030c14", // Super Famicom Mini (JAP)
};
- correctKeys[MainForm.ConsoleType.NES] = new string[] { "bb8f49e0ae5acc8d5f9b7fa40efbd3e7" };
- correctKeys[MainForm.ConsoleType.SNES] = new string[] { "c5dbb6e29ea57046579cfd50b124c9e1" };
+ correctKeys[MainForm.ConsoleType.NES] =
+ correctKeys[MainForm.ConsoleType.Famicom] =
+ new string[] { "bb8f49e0ae5acc8d5f9b7fa40efbd3e7" };
+ correctKeys[MainForm.ConsoleType.SNES] =
+ correctKeys[MainForm.ConsoleType.SuperFamicom] =
+ new string[] { "c5dbb6e29ea57046579cfd50b124c9e1" };
}
public DialogResult Start()
@@ -454,9 +458,8 @@ namespace com.clusterrr.hakchi_gui
var matchedKeys = from k in correctKeys where k.Value.Contains(keyhash) select k.Key;
if (matchedKeys.Count() > 0)
{
- var console = matchedKeys.First();
- if (console != ConfigIni.ConsoleType)
- throw new Exception(Resources.InvalidConsoleSelected + " " + console);
+ if (!matchedKeys.Contains(ConfigIni.ConsoleType))
+ throw new Exception(Resources.InvalidConsoleSelected + " " + matchedKernels.First());
}
else throw new Exception("Unknown key, unknown console");
@@ -472,9 +475,8 @@ namespace com.clusterrr.hakchi_gui
else
{
// Lets try to autodetect console using kernel hash
- var console = matchedKernels.First();
- if (console != ConfigIni.ConsoleType)
- throw new Exception(Resources.InvalidConsoleSelected + " " + console);
+ if (!matchedKernels.Contains(ConfigIni.ConsoleType))
+ throw new Exception(Resources.InvalidConsoleSelected + " " + matchedKernels.First());
}
Directory.CreateDirectory(Path.GetDirectoryName(KernelDumpPath));
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj
index e605e719..8d17953b 100644
--- a/hakchi_gui.csproj
+++ b/hakchi_gui.csproj
@@ -31,8 +31,8 @@
<PublisherName>Alexey %27Cluster%27 Avdyukhin</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
- <ApplicationRevision>14</ApplicationRevision>
- <ApplicationVersion>2.0.20.14</ApplicationVersion>
+ <ApplicationRevision>15</ApplicationRevision>
+ <ApplicationVersion>2.0.20.15</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>