MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / Update

Method Update

ReClass/CNodeText.cpp:11–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void CNodeText::Update( const PHOTSPOT Spot )
12{
13 SIZE_T Length;
14
15 StandardUpdate( Spot );
16
17 if (Spot->Id == 0)
18 {
19 m_dwMemorySize = _ttoi( Spot->Text.GetString( ) );
20 }
21 else if (Spot->Id == 1)
22 {
23 Length = Spot->Text.GetLength( ) + 1;
24 if (Length > m_dwMemorySize)
25 Length = m_dwMemorySize;
26 ReClassWriteMemory( (LPVOID)Spot->Address, (LPVOID)Spot->Text.GetString( ), Length );
27 }
28}
29
30NODESIZE CNodeText::Draw( const PVIEWINFO View, int x, int y )
31{

Callers

nothing calls this directly

Calls 2

ReClassWriteMemoryFunction · 0.85
GetLengthMethod · 0.80

Tested by

no test coverage detected