Skip to content

Commit 76c7530

Browse files
committed
Added RemoteMemoryReader parameter.
1 parent 5849827 commit 76c7530

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ReClass.NET/Nodes/BaseHexCommentNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected int AddComment(ViewInfo view, int x, int y, float fvalue, IntPtr ivalu
8585

8686
foreach (var reader in NodeInfoReader)
8787
{
88-
var info = reader.ReadNodeInfo(this, nodeAddress, ivalue, view.Memory);
88+
var info = reader.ReadNodeInfo(this, view.Process, view.Memory, nodeAddress, ivalue);
8989
if (info != null)
9090
{
9191
x = AddText(view, x, y, view.Settings.PluginColor, HotSpot.ReadOnlyId, info) + view.Font.Width;

ReClass.NET/Nodes/INodeInfoReader.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ public interface INodeInfoReader
1111
/// Used to print custom informations about a node.
1212
/// </summary>
1313
/// <param name="node">The node.</param>
14-
/// <param name="nodeAddress">The absolute address of the node.</param>
15-
/// /// <param name="nodeValue">The memory value of the node as <see cref="IntPtr"/>.</param>
14+
/// <param name="reader">The current <see cref="IRemoteMemoryReader"/>.</param>
1615
/// <param name="memory">The current <see cref="MemoryBuffer"/>.</param>
16+
/// <param name="nodeAddress">The absolute address of the node.</param>
17+
/// <param name="nodeValue">The memory value of the node as <see cref="IntPtr"/>.</param>
1718
/// <returns>Custom informations about the node or null.</returns>
18-
string ReadNodeInfo(BaseHexCommentNode node, IntPtr nodeAddress, IntPtr nodeValue, MemoryBuffer memory);
19+
string ReadNodeInfo(BaseHexCommentNode node, IRemoteMemoryReader reader, MemoryBuffer memory, IntPtr nodeAddress, IntPtr nodeValue);
1920
}
2021

2122
[ContractClassFor(typeof(INodeInfoReader))]
2223
internal abstract class NodeInfoReaderContract : INodeInfoReader
2324
{
24-
public string ReadNodeInfo(BaseHexCommentNode node, IntPtr nodeAddress, IntPtr nodeValue, MemoryBuffer memory)
25+
public string ReadNodeInfo(BaseHexCommentNode node, IRemoteMemoryReader reader, MemoryBuffer memory, IntPtr nodeAddress, IntPtr nodeValue)
2526
{
2627
Contract.Requires(node != null);
28+
Contract.Requires(reader != null);
2729
Contract.Requires(memory != null);
2830

2931
throw new NotImplementedException();

0 commit comments

Comments
 (0)