this is how it will be done

This commit is contained in:
ineed bots
2023-08-30 14:06:03 -06:00
parent 27cf320efc
commit ad4191eb97
3 changed files with 46 additions and 3 deletions

View File

@ -1,5 +1,8 @@
#pragma once
#define WEAK __declspec(selectany)
#define NAKED __declspec(naked)
#define SELECT(mp, sp) (game::environment::t4mp() ? mp : sp)
#define ASSIGN(type, mp, sp) reinterpret_cast<type>(SELECT(mp, sp))
#define CALL_ADDR(mp, sp) ASSIGN(void*, mp, sp)