Skip to content

Commit

Permalink
Merge pull request #625 from FedericoMilesi/EVENT_FindVMObject
Browse files Browse the repository at this point in the history
[EVENT]: Update EVENT_FindVMObject
  • Loading branch information
FedericoMilesi authored Feb 1, 2024
2 parents b51990e + 1a3c986 commit cdfb8d6
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions KAIN2/Game/EVENT.C
Original file line number Diff line number Diff line change
Expand Up @@ -3219,27 +3219,24 @@ void EVENT_AddInstanceToInstanceList(struct _Instance* instance) // Matching -



// autogenerated function stub:
// struct _VMObject * /*$ra*/ EVENT_FindVMObject(struct _StreamUnit *stream /*$a0*/, char *vmoName /*$s4*/)
struct _VMObject * EVENT_FindVMObject(struct _StreamUnit *stream, char *vmoName)
{ // line 6623, offset 0x800677e8
/* begin block 1 */
// Start line: 6624
// Start offset: 0x800677E8
// Variables:
int i; // $s2
struct _VMObject *vmObject; // $s3
struct Level *level; // $s1
/* end block 1 */
// End offset: 0x80067864
// End Line: 6643
struct _VMObject* EVENT_FindVMObject(struct _StreamUnit* stream, char* vmoName) // Matching - 100%
{
int i;
struct _VMObject* vmObject;
struct Level* level;

/* begin block 2 */
// Start line: 14290
/* end block 2 */
// End Line: 14291
UNIMPLEMENTED();
return null;
level = stream->level;
vmObject = NULL;
for (i = 0; i < level->numVMObjects; i++)
{
if (strcmpi(level->vmobjectList[i].name, vmoName) == 0)
{
vmObject = &level->vmobjectList[i];
break;
}
}

return vmObject;
}


Expand Down

0 comments on commit cdfb8d6

Please sign in to comment.