Skip to content
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

Finished code_801031F0.c, guPosition.c, guLookAtHilite.c #84

Merged
merged 14 commits into from
Apr 22, 2020

Conversation

shawlucas
Copy link
Contributor

Also added documentation to some of these functions based on SDK docs.

Left code_801031F0.c as the name it is, didn't know what to call it.

@@ -142,7 +142,7 @@ void IrqMgr_HandlePRENMI450(IrqMgr* this) {
void IrqMgr_HandlePRENMI480(IrqMgr* this) {
u32 ret;
osSetTimer(&this->timer, OS_USEC_TO_CYCLES(20000), 0ull, &this->queue, (OSMesg)PRENMI500_MSG);
ret = func_801031F0(); // osAfterPreNMI
ret = osAfterPreNMI(); // osAfterPreNMI
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that its named proper you can remove this comment

/**
* osContStartQuery:
* Starts to read the values for SI device status and type which are connected to the controller port and joyport
*connector.
Copy link
Collaborator

@fig02 fig02 Apr 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting thing, just a space after the star. Also throughout the codebase Im pretty sure we dont have a linebreak between block comments and the function itself so that would be nice to keep consistent as well

@@ -4,7 +4,7 @@

// TODO: rename these
// SM64 OOT
#define guMtxIdentF func_80101B40
#define guMtxIdentF guMtxIdentF
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these defines needed now that they are named properly? no clue what the purpose of them is. Also if the other one in here is a correct name why not rename that too I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was there before I even started these files. I’ll fix all this when I get the chance today :)

Copy link
Collaborator

@Roman971 Roman971 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally not a fan of the long descriptions for libultra functions (mostly not a fan of the argument listing), but it's kind of whatever anyway.

@fig02
Copy link
Collaborator

fig02 commented Apr 22, 2020

We deliberately shut down argument listings in a different PR so I think it makes sense to keep it consistent

@shawlucas
Copy link
Contributor Author

Removed argument listing

@fig02 fig02 merged commit 3c440ef into zeldaret:master Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants