Skip to content

Commit

Permalink
Added debug drawing function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
SK83RJOSH committed Nov 25, 2020
1 parent 04414ee commit d769f7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions game.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ namespace Teardown
inline static function_signature<void*(__cdecl*)(size_t size)> Malloc = { "\x40\x53\x48\x83\xEC\x20\x48\x8B\xD9\x48\x83\xF9\xE0\x77\x3C\x48\x85\xC9\xB8\x2A\x2A\x2A\x2A\x48\x0F\x44\xD8\xEB\x15\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x25\x48\x8B\xCB\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x19\x48\x8B\x0D\x2A\x2A\x2A\x2A\x4C\x8B\xC3\x33\xD2\xFF\x15\x2A\x2A\x2A\x2A\x48\x85\xC0\x74\xD4\xEB\x0D\xE8\x2A\x2A\x2A\x2A\xC7\x00\x2A\x2A\x2A\x2A\x33\xC0\x48\x83\xC4\x20\x5B\xC3" };
inline static function_signature<void(__fastcall*)(void* mem)> Free = { "\x48\x85\xC9\x74\x37\x53\x48\x83\xEC\x20\x4C\x8B\xC1\x33\xD2\x48\x8B\x0D\x2A\x2A\x2A\x2A\xFF\x15\x2A\x2A\x2A\x2A\x85\xC0\x75\x17\xE8\x2A\x2A\x2A\x2A\x48\x8B\xD8\xFF\x15\x2A\x2A\x2A\x2A\x8B\xC8\xE8\x2A\x2A\x2A\x2A" };
inline static function_signature<void(__fastcall*)(small_string* string)> DebugLog = { "\x80\x79\x0F\x00\x74\x03\x48\x8B\x09\x48\x8B\xD1\x48\x8D\x0D\x2A\x2A\x2A\x2A\xE9\x2A\x2A\x2A\x2A" };


inline static function_signature<void(__fastcall*)(uint64_t renderer, Entities::Shape* shape, const Vector4_f32& color)> DrawOutline = { "\x40\x53\x48\x83\xEC\x40\x0F\x28\x05\x2A\x2A\x2A\x2A\x49\x8B\xD8\x48\x89\x54\x24\x2A\x4C\x8D\x44\x24\x2A\x48\x8D\x54\x24\x2A\x48\x81\xC1" };
inline static function_signature<void(__fastcall*)(uint64_t renderer, Entities::Shape* shape, float unk)> DrawHighlight = { "\x48\x83\xEC\x48\x48\x89\x54\x24\x2A\x4C\x8D\x44\x24\x2A\x48\x8D\x54\x24\x2A\x0F\x29\x74\x24\x2A\x48\x81\xC1\x2A\x2A\x2A\x2A\x0F\x28\xF2\xE8" };
inline static function_signature<void(__fastcall*)(uint64_t renderer, const Vector3_f32& position_0, const Vector3_f32& position_1, const Vector4_f32& color_0, const Vector4_f32& color_1, bool use_depth)> DrawLine = { "\x48\x89\x5C\x24\x2A\x48\x89\x6C\x24\x2A\x48\x89\x74\x24\x2A\x57\x41\x56\x41\x57\x48\x83\xEC\x20\x80\x7C\x24\x2A\x2A" };

static_assert(sizeof(Game) == 0x3EDu, "Game size is incorrect!");
static_assert(sizeof(Game::Timer) == 0x10u, "Game::Timer size is incorrect!");
Expand Down

0 comments on commit d769f7f

Please sign in to comment.