-
Notifications
You must be signed in to change notification settings - Fork 577
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
Decompiled ovl_En_Ma1 #83
Conversation
s16 ret = 1; | ||
switch (func_8010BDBC(&globalCtx->msgCtx)) { | ||
case 2: | ||
switch (this->actor.textId - 0x2041) { |
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 looks like it could just be a switch (this->actor.textId)
, with all cases being properly shifted (case 0x2041
instead of case 0
, etc)
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.
I just tried this and it doesn't seem to work.
Co-Authored-By: Roman971 <32455037+Roman971@users.noreply.github.com>
if (this->unk_1E8.unk_00 == 0) { | ||
if (this->unk_1E0 != 0) { | ||
this->unk_1E0 = 0; | ||
func_800F6584(0, this); |
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 function appears to be called by en_ma1, 2 and 3. I would make this &this->actor, and below where it is used again
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.
It actually doesn't even take that other arg, which I'll fix in Ma2 after this is merged
I also added a new script, gen_mips_to_c_context.py. You feed it a .s file and it will create a context file for mips_to_c at build/ctx.c . Only tested so far on actors.