Skip to content

Commit 7ec2af0

Browse files
committed
Added interface.
1 parent e9689c5 commit 7ec2af0

5 files changed

+18
-3
lines changed

ReClass.NET/Core/CoreFunctionsManager.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using ReClassNET.Debugger;
88
using ReClassNET.Extensions;
99
using ReClassNET.Memory;
10-
using ReClassNET.Util;
1110

1211
namespace ReClassNET.Core
1312
{
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Windows.Forms;
3+
4+
namespace ReClassNET.Core
5+
{
6+
public interface IInternalCoreFunctions
7+
{
8+
bool DisassembleCode(IntPtr address, int length, IntPtr virtualAddress, bool determineStaticInstructionBytes, EnumerateInstructionCallback callback);
9+
10+
IntPtr InitializeInput();
11+
12+
Keys[] GetPressedKeys(IntPtr handle);
13+
14+
void ReleaseInput(IntPtr handle);
15+
}
16+
}

ReClass.NET/Core/InternalCoreFunctions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace ReClassNET.Core
1010
{
1111
public delegate bool EnumerateInstructionCallback(ref InstructionData data);
1212

13-
internal class InternalCoreFunctions : NativeCoreWrapper, IDisposable
13+
internal class InternalCoreFunctions : NativeCoreWrapper, IInternalCoreFunctions, IDisposable
1414
{
1515
private const string CoreFunctionsModuleWindows = "NativeCore.dll";
1616
private const string CoreFunctionsModuleUnix = "NativeCore.so";

ReClass.NET/Core/NativeCoreWrapper.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using ReClassNET.Debugger;
44
using ReClassNET.Extensions;
55
using ReClassNET.Native;
6-
using ReClassNET.Util;
76

87
namespace ReClassNET.Core
98
{

ReClass.NET/ReClass.NET.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<Compile Include="Core\CoreFunctionsManager.cs" />
149149
<Compile Include="Core\DataExchange.cs" />
150150
<Compile Include="Core\ICoreProcessFunctions.cs" />
151+
<Compile Include="Core\IInternalCoreFunctions.cs" />
151152
<Compile Include="Core\InternalCoreFunctions.cs" />
152153
<Compile Include="Core\NativeCoreWrapper.cs" />
153154
<Compile Include="DataExchange\ReClass\ReClassClipboard.cs" />

0 commit comments

Comments
 (0)