mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-23 16:43:36 +00:00
Restructured project structure to use a singular SLN; made the T2API common to all projects; adjusted watchdog timer to 8 seconds
This commit is contained in:
parent
e1c5d1dead
commit
527474ff24
79 changed files with 469 additions and 626 deletions
34
CommonAPI/Common/source/DXAPI/GameConnection.cpp
Normal file
34
CommonAPI/Common/source/DXAPI/GameConnection.cpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue