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:
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 13a5fcea..6d42fef7 100644
--- a/ConfigIni.cs
+++ b/ConfigIni.cs
@@ -5,6 +5,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
+using static com.clusterrr.hakchi_gui.MainForm;
namespace com.clusterrr.hakchi_gui
{
@@ -19,6 +20,7 @@ namespace com.clusterrr.hakchi_gui
public static bool RemoveThumbnails = false;
public static bool EightBitPngCompression = true;
public static byte AntiArmetLevel = 0;
+ public static NesButtons ResetCombination = NesButtons.Down | NesButtons.Select;
public static Dictionary<string, string> Presets = new Dictionary<string, string>();
const string ConfigFile = "config.ini";
@@ -73,6 +75,9 @@ namespace com.clusterrr.hakchi_gui
case "eightbitpngcompression":
EightBitPngCompression = !value.ToLower().Equals("false");
break;
+ case "resetcombination":
+ ResetCombination = (NesButtons) byte.Parse(value);
+ break;
}
break;
case "presets":
@@ -97,7 +102,8 @@ namespace com.clusterrr.hakchi_gui
configLines.Add(string.Format("AntiArmetLevel={0}", AntiArmetLevel));
configLines.Add(string.Format("RemoveThumbnails={0}", RemoveThumbnails));
configLines.Add(string.Format("EightBitPngCompression={0}", EightBitPngCompression));
-
+ configLines.Add(string.Format("ResetCombination={0}", (byte)ResetCombination));
+
configLines.Add("[Presets]");
configLines.Add("");
foreach (var preset in Presets.Keys)