From f0b06959565c996a17f74669e67a7374bdc07dfb Mon Sep 17 00:00:00 2001 From: Sewer 56 Date: Mon, 10 Oct 2022 03:35:05 +0100 Subject: [PATCH] Added: SkipLocalsInit Directive --- .../ModConfig.json | 2 +- .../IScanner.cs | 4 ++++ .../PublicAPI/net5.0/PublicAPI.Shipped.txt | 21 +++++++++++++++++++ .../PublicAPI/net5.0/PublicAPI.Unshipped.txt | 2 ++ ...Reloaded.Memory.Sigscan.Definitions.csproj | 2 +- .../Reloaded.Memory.Sigscan.csproj | 2 +- Reloaded.Memory.Sigscan/Scanner.cs | 4 ++++ 7 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Shipped.txt create mode 100644 Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Unshipped.txt diff --git a/External/Reloaded.Memory.SigScan.ReloadedII/ModConfig.json b/External/Reloaded.Memory.SigScan.ReloadedII/ModConfig.json index 9c9a258..bc316af 100644 --- a/External/Reloaded.Memory.SigScan.ReloadedII/ModConfig.json +++ b/External/Reloaded.Memory.SigScan.ReloadedII/ModConfig.json @@ -2,7 +2,7 @@ "ModId": "Reloaded.Memory.SigScan.ReloadedII", "ModName": "Library: Reloaded.Memory.Sigscan for Reloaded II", "ModAuthor": "Sewer56", - "ModVersion": "1.2.5", + "ModVersion": "1.2.6", "ModDescription": "Shared implementation of Reloaded.Memory.Sigscan", "ModDll": "Reloaded.Memory.SigScan.ReloadedII.dll", "ModIcon": "Preview.png", diff --git a/Reloaded.Memory.Sigscan.Definitions/IScanner.cs b/Reloaded.Memory.Sigscan.Definitions/IScanner.cs index 33119fc..4aea515 100644 --- a/Reloaded.Memory.Sigscan.Definitions/IScanner.cs +++ b/Reloaded.Memory.Sigscan.Definitions/IScanner.cs @@ -1,7 +1,11 @@ using System; using System.Collections.Generic; +using System.Runtime.CompilerServices; using Reloaded.Memory.Sigscan.Definitions.Structs; +#if NET5_0_OR_GREATER + [module: SkipLocalsInit] +#endif namespace Reloaded.Memory.Sigscan.Definitions; /// diff --git a/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Shipped.txt b/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000..0db7717 --- /dev/null +++ b/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Shipped.txt @@ -0,0 +1,21 @@ +override Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.Equals(object obj) -> bool +override Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.GetHashCode() -> int +Reloaded.Memory.Sigscan.Definitions.IScanner +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern(string pattern) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPatterns(System.Collections.Generic.IReadOnlyList patterns, bool loadBalance = false) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult[] +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern_Avx2(string pattern) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern_Compiled(string pattern) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern_Simple(string pattern) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern_Sse2(string pattern) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScannerFactory +Reloaded.Memory.Sigscan.Definitions.IScannerFactory.CreateScanner(byte* data, int length) -> Reloaded.Memory.Sigscan.Definitions.IScanner +Reloaded.Memory.Sigscan.Definitions.IScannerFactory.CreateScanner(byte[] data) -> Reloaded.Memory.Sigscan.Definitions.IScanner +Reloaded.Memory.Sigscan.Definitions.IScannerFactory.CreateScanner(System.Diagnostics.Process process) -> Reloaded.Memory.Sigscan.Definitions.IScanner +Reloaded.Memory.Sigscan.Definitions.IScannerFactory.CreateScanner(System.Diagnostics.Process process, System.Diagnostics.ProcessModule module) -> Reloaded.Memory.Sigscan.Definitions.IScanner +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.AddOffset(int offset) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.Equals(Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult other) -> bool +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.Found.get -> bool +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.Offset.get -> int +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.PatternScanResult() -> void +Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult.PatternScanResult(int offset) -> void \ No newline at end of file diff --git a/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Unshipped.txt b/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000..168c2b7 --- /dev/null +++ b/Reloaded.Memory.Sigscan.Definitions/PublicAPI/net5.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPattern(string pattern, int offset) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult +Reloaded.Memory.Sigscan.Definitions.IScanner.FindPatternsCached(System.Collections.Generic.IReadOnlyList patterns, bool loadBalance = false) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult[] \ No newline at end of file diff --git a/Reloaded.Memory.Sigscan.Definitions/Reloaded.Memory.Sigscan.Definitions.csproj b/Reloaded.Memory.Sigscan.Definitions/Reloaded.Memory.Sigscan.Definitions.csproj index 61fe898..6de4066 100644 --- a/Reloaded.Memory.Sigscan.Definitions/Reloaded.Memory.Sigscan.Definitions.csproj +++ b/Reloaded.Memory.Sigscan.Definitions/Reloaded.Memory.Sigscan.Definitions.csproj @@ -1,7 +1,7 @@  - netstandard2.0;netcoreapp3.1 + netstandard2.0;netcoreapp3.1;net5.0 preview $(DefineConstants);SIMD_INTRINSICS true diff --git a/Reloaded.Memory.Sigscan/Reloaded.Memory.Sigscan.csproj b/Reloaded.Memory.Sigscan/Reloaded.Memory.Sigscan.csproj index d450ccf..ebac97d 100644 --- a/Reloaded.Memory.Sigscan/Reloaded.Memory.Sigscan.csproj +++ b/Reloaded.Memory.Sigscan/Reloaded.Memory.Sigscan.csproj @@ -21,7 +21,7 @@ preview true - 3.1.3 + 3.1.4 true diff --git a/Reloaded.Memory.Sigscan/Scanner.cs b/Reloaded.Memory.Sigscan/Scanner.cs index ab4acc1..953f081 100644 --- a/Reloaded.Memory.Sigscan/Scanner.cs +++ b/Reloaded.Memory.Sigscan/Scanner.cs @@ -11,6 +11,10 @@ using System.Runtime.Intrinsics.X86; #endif +#if NET5_0_OR_GREATER + [module: SkipLocalsInit] +#endif + namespace Reloaded.Memory.Sigscan; ///