From e008be6bb9cdf029a269cde2e448cf52503c52a3 Mon Sep 17 00:00:00 2001 From: gitmacer Date: Fri, 27 Dec 2019 18:24:14 +0100 Subject: [PATCH 1/8] Update wrapper path --- .../Profiles/Move or Die/Control_MoD.xaml.cs | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml.cs b/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml.cs index 84f589cc2..3e6e2484d 100644 --- a/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml.cs +++ b/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml.cs @@ -58,12 +58,32 @@ private void patch_button_manually_Click(object sender, RoutedEventArgs e) private int GameID = 323850; - private bool InstallWrapper(string installpath = "") + private bool InstallWrapper() { - if (String.IsNullOrWhiteSpace(installpath)) - installpath = Utils.SteamUtils.GetGamePath(this.GameID); + string installpath = System.IO.Path.Combine(Utils.SteamUtils.GetGamePath(this.GameID), "Love", "win"); + if (Directory.Exists(installpath)) + { + using (BinaryWriter razer_wrapper_86 = new BinaryWriter(new FileStream(System.IO.Path.Combine(installpath, "RzChromaSDK.dll"), FileMode.Create))) + { + razer_wrapper_86.Write(Properties.Resources.Aurora_RazerLEDWrapper86); + } + + using (BinaryWriter razer_wrapper_64 = new BinaryWriter(new FileStream(System.IO.Path.Combine(installpath, "RzChromaSDK64.dll"), FileMode.Create))) + { + razer_wrapper_64.Write(Properties.Resources.Aurora_RazerLEDWrapper64); + } + + return true; + } + else + { + return false; + } + } + private bool InstallWrapper(string installpath) + { if (!String.IsNullOrWhiteSpace(installpath)) { using (BinaryWriter razer_wrapper_86 = new BinaryWriter(new FileStream(System.IO.Path.Combine(installpath, "RzChromaSDK.dll"), FileMode.Create))) @@ -92,12 +112,21 @@ private bool UninstallWrapper() string path = System.IO.Path.Combine(installpath, "RzChromaSDK.dll"); string path64 = System.IO.Path.Combine(installpath, "RzChromaSDK64.dll"); + string enginepath = System.IO.Path.Combine(installpath, "Love", "win", "RzChromaSDK.dll"); + string enginepath64 = System.IO.Path.Combine(installpath, "Love", "win", "RzChromaSDK64.dll"); + if (File.Exists(path)) File.Delete(path); if (File.Exists(path64)) File.Delete(path64); + if (File.Exists(enginepath)) + File.Delete(enginepath); + + if (File.Exists(enginepath64)) + File.Delete(enginepath64); + return true; } else From 41f75cec5befe799e23e2024580a59bad7665e09 Mon Sep 17 00:00:00 2001 From: gitmacer Date: Fri, 27 Dec 2019 19:39:26 +0100 Subject: [PATCH 2/8] Add disable MoDs Corsair support patch --- .../Profiles/Move or Die/Control_MoD.xaml | 9 +++- .../Profiles/Move or Die/Control_MoD.xaml.cs | 49 +++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml b/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml index f8a208626..3687223be 100644 --- a/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml +++ b/Project-Aurora/Project-Aurora/Profiles/Move or Die/Control_MoD.xaml @@ -26,12 +26,17 @@ - - + +