mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-13 22:12:31 +03:00

- changed __int32/__int16/__int8 to int/short/char respectivly. - added UPV (prototype), lara is killed when enter.
28 lines
No EOL
450 B
C++
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);
|
|
} |