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-15 03:47:33 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-02-15 03:47:33 +0300
commit5b55915e2555e6618ad0a6e0ae16f8e1f02ca210 (patch)
tree4ecd87399ec78270a0608bbdffa2af9033a892bf /ConfigIni.cs
parent66602348db6c376fc0c96d79af695825571841a2 (diff)
Console type check for config saving, console type in title, memory check fixes
Diffstat (limited to 'ConfigIni.cs')
-rw-r--r--ConfigIni.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/ConfigIni.cs b/ConfigIni.cs
index e2f09d53..12ad6258 100644
--- a/ConfigIni.cs
+++ b/ConfigIni.cs
@@ -617,8 +617,12 @@ namespace com.clusterrr.hakchi_gui
File.WriteAllLines(fileName, configLines.ToArray());
}
- public static Dictionary<string, string> GetConfigDictionary()
+ public static Dictionary<string, string> GetConfigDictionary(MainForm.ConsoleType? consoleType = null)
{
+ MainForm.ConsoleType oldConsoleType = ConsoleType;
+ if (consoleType != null && consoleType != MainForm.ConsoleType.Unknown)
+ ConsoleType = consoleType ?? MainForm.ConsoleType.Unknown;
+
var config = new Dictionary<string, string>();
config["clovercon_home_combination"] = ConfigIni.ResetHack ? string.Format("0x{0:X4}", ConfigIni.ResetCombination) : "0x7FFF";
config["clovercon_autofire"] = ConfigIni.AutofireHack ? "1" : "0";
@@ -630,6 +634,8 @@ namespace com.clusterrr.hakchi_gui
config["nes_extra_args"] = ConfigIni.ExtraCommandLineArguments;
if ((ConfigIni.ConsoleType == MainForm.ConsoleType.SNES || ConfigIni.ConsoleType == MainForm.ConsoleType.SuperFamicom))
config["snes_extra_args"] = ConfigIni.ExtraCommandLineArguments;
+
+ ConsoleType = oldConsoleType;
return config;
}
}