-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt d_a_obj_tower_hand_D101 #96
Attempt d_a_obj_tower_hand_D101 #96
Conversation
void transS(const mVec3_c &v) { | ||
PSMTXTrans(*this, v.x, v.y, v.z); | ||
} | ||
void trans(f32 x, f32 y, f32 z) { | ||
void transS(f32 x, f32 y, f32 z) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going with the existing pattern of an S
suffix for functions that Set the matrix and M
for functions that Modify/Mutate the matrix
} | ||
} | ||
|
||
if (item == nullptr || !item->isStateWait()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All code surrounding isStateWait
in this file is weird!
inline u32 getFlags() { | ||
static volatile u32 FLAGS_1 = 0x00000001; | ||
static u32 FLAGS_2 = 0x00100001; | ||
// The remarkable bit here is that this does not use an `andc` instruction, | ||
// but rather `nor`s FLAGS_1, contrary to the other usages so far | ||
u32 f1 = ~FLAGS_1; | ||
u32 f2 = FLAGS_2; | ||
return f2 & f1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is as close as it gets. A lot of unused rodata (floats), and the getItem inline is weird, but it should be pretty much equivalent now. |
No description provided.