Attempt to decompile currentPlayerHasProp

This commit is contained in:
Ryan Dwyer
2020-02-06 22:45:39 +10:00
parent 45891dc1b8
commit 9642084c3b
2 changed files with 33 additions and 1 deletions
+32
View File
@@ -1269,6 +1269,38 @@ glabel currentPlayerHasProp
/* f11294c: 00000000 */ sll $zero,$zero,0x0
);
// regalloc when assigning item and first
//bool currentPlayerHasProp(struct prop *prop)
//{
// struct invitem *item = g_Vars.currentplayer->weapons;
// struct invitem *first = item;
// struct prop *child;
//
// while (item) {
// if (item->type == INVITEMTYPE_PROP && item->type_prop.prop == prop) {
// return true;
// }
//
// item = item->next;
//
// if (item == first) {
// break;
// }
// }
//
// child = g_Vars.currentplayer->prop->child;
//
// while (child) {
// if (child == prop) {
// return true;
// }
//
// child = child->next;
// }
//
// return false;
//}
GLOBAL_ASM(
glabel func0f112950
/* f112950: 3c08800a */ lui $t0,0x800a
+1 -1
View File
@@ -30,7 +30,7 @@ u32 func0f11253c(void);
u32 func0f112790(void);
bool currentPlayerHasBriefcase(void);
bool currentPlayerHasDataUplink(void);
u32 currentPlayerHasProp(struct prop *prop);
bool currentPlayerHasProp(struct prop *prop);
u32 func0f112950(void);
u32 func0f112a58(void);
struct textoverride *objGetTextOverride(struct defaultobj *obj);