Skip to content

Commit

Permalink
Updated: Reloaded.Memory Dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Sep 22, 2022
1 parent 9932d14 commit 7bad94a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.1",
"ModVersion": "1.2.2",
"ModDescription": "Shared implementation of Reloaded.Memory.Sigscan",
"ModDll": "Reloaded.Memory.SigScan.ReloadedII.dll",
"ModIcon": "Preview.png",
Expand Down
4 changes: 2 additions & 2 deletions 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.1</Version>
<Version>3.1.2</Version>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

Expand All @@ -35,7 +35,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Reloaded.Memory" Version="4.1.4" />
<PackageReference Include="Reloaded.Memory" Version="8.0.1" />
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'netstandard2.0'" Version="4.5.3" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Reloaded.Memory.Sigscan/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Scanner(Process process, ProcessModule module)
else
{
var externalProcess = new ExternalMemory(process);
externalProcess.ReadRaw(module.BaseAddress, out var data, module.ModuleMemorySize);
externalProcess.ReadRaw((nuint)(nint)module.BaseAddress, out var data, module.ModuleMemorySize);

_gcHandle = GCHandle.Alloc(data, GCHandleType.Pinned);
_dataPtr = (byte*)_gcHandle.Value.AddrOfPinnedObject();
Expand Down

0 comments on commit 7bad94a

Please sign in to comment.