From bb2c43e9ec0a903d3416bf19c5f6863824d55462 Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 2 Nov 2024 17:03:54 +0000 Subject: [PATCH] Update Quit Method --- DumpLib/Helpers/MethodHelper.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/DumpLib/Helpers/MethodHelper.cs b/DumpLib/Helpers/MethodHelper.cs index 657492e..71e29e5 100644 --- a/DumpLib/Helpers/MethodHelper.cs +++ b/DumpLib/Helpers/MethodHelper.cs @@ -32,7 +32,7 @@ public class MethodHelper } /// - /// Method to get Quit method from EFT (as of 20/05/2024 - GClass1955) + /// Method to get Quit method from EFT (as of 02/11/2024 - GClass2193) /// /// MethodInfo public static MethodInfo GetApplicationQuitMethod() @@ -40,8 +40,11 @@ public class MethodHelper try { return DataHelper._eftAssembly.GetTypes().First(x => - x.GetMethods().Any(y => - y.Name == "Quit") + { + var methods = x.GetMethods(); + + return methods.Any(m => m.Name == "Quit") && methods.Any(m => m.Name == "QuitWithCode"); + } ).GetMethod("Quit"); } catch (Exception e)