TombEngine/TR5Main/Game/deltapak.cpp
TokyoSU dc888f2c9c [Update] Project & UPV Prototype
- changed __int32/__int16/__int8 to int/short/char respectivly.
- added UPV (prototype), lara is killed when enter.
2019-11-27 15:12:35 +01:00

28 lines
No EOL
450 B
C++

#include "deltapak.h"
#include "..\Global\global.h"
#include <stdio.h>
ITEM_INFO* __cdecl FindItem(short objectNumber)
{
#ifdef DEBUG
printf("Called FindItem()\n");
#endif
DB_Log(0, "FindItem - DLL");
if (LevelItems > 0)
{
for (int i = 0; i < LevelItems; i++)
{
if (Items[i].objectNumber == objectNumber)
return &Items[i];
}
}
return NULL;
}
void Inject_DeltaPak()
{
INJECT(0x00423470, FindItem);
}