Skip to content

Commit 6a5d80b

Browse files
committed
Changed because of ReClassNET/ReClass.NET#19 .
1 parent 9299f89 commit 6a5d80b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Hybrid/SamplePluginHybridExt.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ namespace SamplePluginHybrid
2424
}
2525

2626
/// <summary>This method lets ReClass.NET print the name and the value of the node.</summary>
27-
String^ SampleNodeInfoReader::ReadNodeInfo(BaseNode^ node, IntPtr value, MemoryBuffer^ memory)
27+
String^ SampleNodeInfoReader::ReadNodeInfo(BaseNode^ node, IntPtr nodeAddress, IntPtr nodeValue, MemoryBuffer^ memory)
2828
{
29-
return node->Name + " => " + value.ToString("X");
29+
return node->Name + "@" + nodeAddress.ToString("X") + " => " + nodeValue.ToString("X");
3030
}
3131
}

Hybrid/SamplePluginHybridExt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ namespace SamplePluginHybrid
2424
public ref class SampleNodeInfoReader : INodeInfoReader
2525
{
2626
public:
27-
virtual String^ ReadNodeInfo(BaseNode^ node, IntPtr value, MemoryBuffer^ memory);
27+
virtual String^ ReadNodeInfo(BaseNode^ node, IntPtr nodeAddress, IntPtr nodeValue, MemoryBuffer^ memory);
2828
};
2929
}

Managed/SamplePluginManagedExt.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ private void OnWindowAdded(object sender, GlobalWindowManagerEventArgs e)
9797
public class SampleNodeInfoReader : INodeInfoReader
9898
{
9999
/// <summary>This method lets ReClass.NET print the name and the value of the node.</summary>
100-
public string ReadNodeInfo(BaseNode node, IntPtr value, MemoryBuffer memory)
100+
public string ReadNodeInfo(BaseNode node, IntPtr nodeAddress, IntPtr nodeValue, MemoryBuffer memory)
101101
{
102-
return $"{node.Name} => {value.ToString("X")}";
102+
return $"{node.Name}@{nodeAddress.ToString("X")} => {nodeValue.ToString("X")}";
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)