mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-01-20 10:34:45 +00:00
34 lines
582 B
C++
34 lines
582 B
C++
|
|
#include <DXAPI/GameConnection.h>
|
||
|
|
|
||
|
|
namespace DX
|
||
|
|
{
|
||
|
|
GameConnection::GameConnection(unsigned int obj) : NetConnection(obj)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
ShapeBase GameConnection::getControlObject(void)
|
||
|
|
{
|
||
|
|
unsigned int result_ptr = 0;
|
||
|
|
unsigned int my_ptr = this->base_pointer_value;
|
||
|
|
__asm
|
||
|
|
{
|
||
|
|
mov ecx, my_ptr;
|
||
|
|
add ecx, 3404928;
|
||
|
|
|
||
|
|
test ecx, ecx;
|
||
|
|
mov edx, ecx;
|
||
|
|
jz loc_5FDA60_sim;
|
||
|
|
add edx, 4294967136;
|
||
|
|
|
||
|
|
loc_5FDA60_sim:
|
||
|
|
mov eax, [edx + 33372];
|
||
|
|
test eax, eax;
|
||
|
|
jnz got_valid_ptr;
|
||
|
|
|
||
|
|
got_valid_ptr:
|
||
|
|
mov result_ptr, eax;
|
||
|
|
}
|
||
|
|
|
||
|
|
return ShapeBase(result_ptr);
|
||
|
|
}
|
||
|
|
} // End NameSpace DX
|