Skip to content

Commit

Permalink
Update MemoryPluginTemplate.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Razchek committed Jul 3, 2020
1 parent 57f1895 commit 78ad8ca
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Unispect/Plugins/MemoryPluginTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override ModuleProxy GetModule(string moduleName)
return new ModuleProxy(moduleName, baseAddress, size);
}

public override void AttachToProcess(string handle)
public override bool AttachToProcess(string handle)
{
// Attach to the process so that the two Read functions are able to interface with the process.
// The argument: handle (string) will be the text from Unispect's "Process Handle" text box.
Expand All @@ -41,14 +41,7 @@ public override byte[] Read(ulong address, int length)
// -so you could remove the IntPtr constructor.
// Marshal.Copy(bytePtr, buffer, 0, size)
throw new NotImplementedException();
}

public override T Read<T>(ulong address, int length = 0)
{
// See the BasicMemory.cs implementation for a crude example.
// This handles reading structures, ulong and uint.
throw new NotImplementedException();
}
}

public override void Dispose()
{
Expand Down

0 comments on commit 78ad8ca

Please sign in to comment.