@@ -10,7 +10,7 @@ namespace ReClassNET.Nodes
1010 public abstract class BaseFunctionPtrNode : BaseNode
1111 {
1212 private IntPtr address = IntPtr . Zero ;
13- private readonly List < string > assembledCode = new List < string > ( ) ;
13+ private readonly List < string > instructions = new List < string > ( ) ;
1414
1515 /// <summary>Size of the node in bytes.</summary>
1616 public override int MemorySize => IntPtr . Size ;
@@ -21,7 +21,7 @@ public override string GetToolTipText(HotSpot spot, MemoryBuffer memory)
2121
2222 DisassembleRemoteCode ( memory , ptr ) ;
2323
24- return string . Join ( "\n " , assembledCode ) ;
24+ return string . Join ( "\n " , instructions ) ;
2525 }
2626
2727 protected int Draw ( ViewInfo view , int x , int y , string type , string name )
@@ -42,10 +42,11 @@ protected int Draw(ViewInfo view, int x, int y, string type, string name)
4242 x += TextPadding ;
4343
4444 x = AddIcon ( view , x , y , Icons . Function , - 1 , HotSpotType . None ) ;
45- x = AddAddressOffset ( view , x , y ) ;
4645
4746 var tx = x ;
4847
48+ x = AddAddressOffset ( view , x , y ) ;
49+
4950 x = AddText ( view , x , y , Program . Settings . TypeColor , HotSpot . NoneId , type ) + view . Font . Width ;
5051 x = AddText ( view , x , y , Program . Settings . NameColor , HotSpot . NameId , name ) + view . Font . Width ;
5152
@@ -78,7 +79,7 @@ protected int Draw(ViewInfo view, int x, int y, string type, string name)
7879
7980 DisassembleRemoteCode ( view . Memory , ptr ) ;
8081
81- foreach ( var line in assembledCode )
82+ foreach ( var line in instructions )
8283 {
8384 y += view . Font . Height ;
8485
@@ -99,7 +100,7 @@ public override int CalculateHeight(ViewInfo view)
99100 var h = view . Font . Height ;
100101 if ( levelsOpen [ view . Level ] )
101102 {
102- h += assembledCode . Count * view . Font . Height ;
103+ h += instructions . Count * view . Font . Height ;
103104 }
104105 return h ;
105106 }
@@ -110,7 +111,7 @@ private void DisassembleRemoteCode(MemoryBuffer memory, IntPtr address)
110111
111112 if ( this . address != address )
112113 {
113- assembledCode . Clear ( ) ;
114+ instructions . Clear ( ) ;
114115
115116 this . address = address ;
116117
@@ -121,9 +122,9 @@ private void DisassembleRemoteCode(MemoryBuffer memory, IntPtr address)
121122 address ,
122123 200 ,
123124#if WIN64
124- ( a , l , i ) => assembledCode . Add ( $ "{ a . ToString ( "X08" ) } { i } ")
125+ ( a , l , i ) => instructions . Add ( $ "{ a . ToString ( "X08" ) } { i } ")
125126#else
126- ( a , l , i ) => assembledCode . Add ( $ "{ a . ToString ( "X04" ) } { i } ")
127+ ( a , l , i ) => instructions . Add ( $ "{ a . ToString ( "X04" ) } { i } ")
127128#endif
128129 ) ;
129130 }
0 commit comments