mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-07 03:47:52 -04:00
f_pc mostly matching
This commit is contained in:
@@ -13,9 +13,15 @@
|
||||
#include "f_pc/f_pc_profile.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
// hack to make functions that return comparisons as int match
|
||||
extern int __cntlzw(unsigned int);
|
||||
inline BOOL checkEqual(s32 a, s32 b) {
|
||||
return (u32)__cntlzw(a - b) >> 5;
|
||||
}
|
||||
|
||||
/* 8003C88C-8003C89C .text fpcBs_Is_JustOfType__Fii */
|
||||
bool fpcBs_Is_JustOfType(int i_typeA, int i_typeB) {
|
||||
return i_typeB == i_typeA;
|
||||
BOOL fpcBs_Is_JustOfType(int i_typeA, int i_typeB) {
|
||||
return checkEqual(i_typeA, i_typeB);
|
||||
}
|
||||
|
||||
static int g_fpcBs_type;
|
||||
|
||||
Reference in New Issue
Block a user