Skip to content

Commit

Permalink
Update project snowdrop preset system
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Feb 4, 2023
1 parent 8c0c6d1 commit c7bd55d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ namespace AATUV3
{
public partial class MainWindow : Window
{

public static string menu = "";
public static string AppName = "";
public static string mbo = "";
Expand Down
14 changes: 9 additions & 5 deletions Pages/ProjectSnowdrop.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Management;
using UXTU.Scripts.SMU_Backend_Scripts;

namespace AATUV3.Pages
{
Expand Down Expand Up @@ -265,8 +266,9 @@ public void applyPreset1()
{
//Get RyzenAdj path
string pathRyzenAdj = "\\bin\\ryzenadj\\ryzenadj.exe";
//Pass settings on to be applied
BasicExeBackend.ApplySettings(pathRyzenAdj, preset1, true);
//Pass settings on to be applied
//BasicExeBackend.ApplySettings(pathRyzenAdj, preset1, true);
RyzenAdj_To_UXTU.Translate(preset1);
BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Settings-Applied! Your-settings-have-been-applied-successfully.", false);
Settings.Default["RyzenAdjArguments"] = preset1;
Settings.Default.SnowPreset = 1;
Expand All @@ -292,7 +294,8 @@ public void applyPreset2()
//Get RyzenAdj path
string pathRyzenAdj = "\\bin\\ryzenadj\\ryzenadj.exe";
//Pass settings on to be applied
BasicExeBackend.ApplySettings(pathRyzenAdj, preset2, true);
//BasicExeBackend.ApplySettings(pathRyzenAdj, preset2, true);
RyzenAdj_To_UXTU.Translate(preset2);
BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Settings-Applied! Your-settings-have-been-applied-successfully.", false);
Settings.Default["RyzenAdjArguments"] = preset2;
Settings.Default.SnowPreset = 2;
Expand All @@ -316,9 +319,10 @@ public void applyPreset3()
else
{
//Get RyzenAdj path
string pathRyzenAdj = "\\bin\\ryzenadj\\ryzenadj.exe";
//string pathRyzenAdj = "\\bin\\ryzenadj\\ryzenadj.exe";
//Pass settings on to be applied
BasicExeBackend.ApplySettings(pathRyzenAdj, preset3, true);
//BasicExeBackend.ApplySettings(pathRyzenAdj, preset3, true);
RyzenAdj_To_UXTU.Translate(preset3);
BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Settings-Applied! Your-settings-have-been-applied-successfully.", false);
Settings.Default.SnowPreset = 3;
Settings.Default["RyzenAdjArguments"] = preset3;
Expand Down

0 comments on commit c7bd55d

Please sign in to comment.