diff --git a/WeeXnes/Core/Functions.cs b/WeeXnes/Core/Functions.cs
index cc3d081..5833215 100644
--- a/WeeXnes/Core/Functions.cs
+++ b/WeeXnes/Core/Functions.cs
@@ -40,9 +40,11 @@ namespace WeeXnes.Core
File.WriteAllLines(filepath, stringArray, Encoding.UTF8);
}
- public static void ThrowTestException()
+ public static void ThrowTestException(Exception ex = null)
{
- throw new NotImplementedException();
+ if (ex == null)
+ ex = new NotImplementedException();
+ throw ex;
}
}
}
\ No newline at end of file
diff --git a/WeeXnes/Core/Global.cs b/WeeXnes/Core/Global.cs
index f1baff7..9ca1a77 100644
--- a/WeeXnes/Core/Global.cs
+++ b/WeeXnes/Core/Global.cs
@@ -8,7 +8,7 @@ namespace WeeXnes.Core
{
public class Information
{
- public const string Version = "4.4.2";
+ public const string Version = "4.4.3";
public const string EncryptionHash = "8zf5#RdyQ]$4x4_";
public const string ApiUrl = "https://api.github.com/repos/weexnes/weexnessuite/releases/latest";
}
diff --git a/WeeXnes/Views/Settings/SettingsView.xaml b/WeeXnes/Views/Settings/SettingsView.xaml
index 36fe999..e478687 100644
--- a/WeeXnes/Views/Settings/SettingsView.xaml
+++ b/WeeXnes/Views/Settings/SettingsView.xaml
@@ -103,6 +103,19 @@
+
+
+
+
+
+
+
+
diff --git a/WeeXnes/Views/Settings/SettingsView.xaml.cs b/WeeXnes/Views/Settings/SettingsView.xaml.cs
index d69735a..58290c8 100644
--- a/WeeXnes/Views/Settings/SettingsView.xaml.cs
+++ b/WeeXnes/Views/Settings/SettingsView.xaml.cs
@@ -1,10 +1,12 @@
using System;
+using System.Collections;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Windows;
using Application = System.Windows.Forms.Application;
using System.Windows.Controls;
+using System.Windows.Media.Animation;
using Newtonsoft.Json;
using Nocksoft.IO.ConfigFiles;
using WeeXnes.Core;
@@ -23,8 +25,16 @@ namespace WeeXnes.Views.Settings
{
InitializeComponent();
LoadSettingsToGui();
+ EnableDebugOptions();
}
+ private void EnableDebugOptions()
+ {
+ if(!App.DebugMode)
+ return;
+
+ DebugOptions.Visibility = Visibility.Visible;
+ }
private void LoadSettingsToGui()
{
CheckboxCensorKeys.IsChecked = KeyManagerView.Data.censorKeys.Value;
@@ -131,5 +141,10 @@ namespace WeeXnes.Views.Settings
{
KeyManagerView.Data.sortList.Value = false;
}
+
+ private void dbg_throwException(object sender, RoutedEventArgs e)
+ {
+ Functions.ThrowTestException(new ArithmeticException());
+ }
}
}
\ No newline at end of file
diff --git a/WeeXnes/WeeXnes.csproj b/WeeXnes/WeeXnes.csproj
index 48b867b..15785cf 100644
--- a/WeeXnes/WeeXnes.csproj
+++ b/WeeXnes/WeeXnes.csproj
@@ -4,7 +4,7 @@
Debug
AnyCPU
- 4.4.2
+ 4.4.3
{4B33CEE7-C74D-43B9-B99A-8B273D5195BC}
WinExe
WeeXnes