Ares
|
#include "ArmorTypes.h"
Functions | |
DEFINE_HOOK (4753F0, ArmorType_FindIndex, A) | |
DEFINE_HOOK (4B9A52, DropshipLoadout_PrintArmor, 5) |
DEFINE_HOOK | ( | 4753F0 | , |
ArmorType_FindIndex | , | ||
A | |||
) |
{ GET(CCINIClass *, pINI, ECX); if(!ArmorType::Array.Count) { ArmorType::AddDefaults(); } GET_STACK(const char *, Section, 0x4); GET_STACK(const char *, Key, 0x8); GET_STACK(int, fallback, 0xC); char buf[0x20]; const char *curTitle = fallback < ArmorType::Array.Count ? ArmorType::Array[fallback]->Name : "none"; pINI->ReadString(Section, Key, curTitle, buf, 0x20); int idx = ArmorType::FindIndex(buf); R->EAX(idx == -1 ? 0 : idx); return 0x475430; }
DEFINE_HOOK | ( | 4B9A52 | , |
DropshipLoadout_PrintArmor | , | ||
5 | |||
) |
{ R->Stack(0x4, ArmorType::Array[R->EDX()]); return 0; }