Skip to content

Commit

Permalink
Added: SkipLocalsInit Directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Oct 10, 2022
1 parent 251c04c commit f0b0695
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion External/Reloaded.Memory.SigScan.ReloadedII/ModConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions Reloaded.Memory.Sigscan.Definitions/IScanner.cs
Original file line number Diff line number Diff line change
@@ -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;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string> 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
Original file line number Diff line number Diff line change
@@ -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<string> patterns, bool loadBalance = false) -> Reloaded.Memory.Sigscan.Definitions.Structs.PatternScanResult[]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net5.0</TargetFrameworks>
<LangVersion>preview</LangVersion>
<DefineConstants Condition="('$(TargetFramework)' == 'netcoreapp3.1')">$(DefineConstants);SIMD_INTRINSICS</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
2 changes: 1 addition & 1 deletion Reloaded.Memory.Sigscan/Reloaded.Memory.Sigscan.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<LangVersion>preview</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Version>3.1.3</Version>
<Version>3.1.4</Version>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

Expand Down
4 changes: 4 additions & 0 deletions Reloaded.Memory.Sigscan/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
using System.Runtime.Intrinsics.X86;
#endif

#if NET5_0_OR_GREATER
[module: SkipLocalsInit]
#endif

namespace Reloaded.Memory.Sigscan;

/// <summary>
Expand Down

0 comments on commit f0b0695

Please sign in to comment.