-
Notifications
You must be signed in to change notification settings - Fork 36
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
Added controls for most debug features and improved some #44
base: old_main
Are you sure you want to change the base?
Added controls for most debug features and improved some #44
Conversation
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.
random remarks in passing
(feel free to ignore)
GfxPrint_Init(&printer); | ||
GfxPrint_Open(&printer, newDList); | ||
AudioDebug_Draw(&printer); | ||
newDList = GfxPrint_Close(&printer); | ||
GfxPrint_Destroy(&printer); | ||
} | ||
#endif |
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.
you can keep the variables here:
#ifdef ...
{
s32 variable;
...
}
#endif
btw "pad" is unused, can be removed
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 saw that kind of syntax in graph.c I believe and I was wondering if it was acceptable C syntax
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.
yes {}
is just a block. in if () {}
the {}
isn't special syntax tied to the if, it just wraps some code under a single block that is the single thing below the if
#define EVENT_EDITOR_CONTORLLER_PORT CONTROLLER_PORT_1 | ||
|
||
// Set to true to use a button combo | ||
#define EVENT_EDITOR_BTN_COMBO true |
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.
imo this sounds like it would be a BTN_
combination, not a boolean
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 need to cleanup some of the names yeah, this should be like EVENT_EDITOR_USE_BTN_COMBO
won't work on this more than that so marking as ready to review I guess, haven't tested since but I merged master and fix the typo |
Reviewing this will take a bit longer I'll tell when I'm done |
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.
There were a few compiler errors but nothing big so no problem. I'll be checking for functionality in-game now
This PR adds controls in
config_debug_controls.h
for most debug features, also I improved a bit some of them, for instance I translated everything from the camera debugger, though the display is a bit glitched (but it works properly), I'd like to make further improvements to each features in the future™The camera debugger has A LOT of controls, that's why I put them at the end of the file otherwise it'd be awful to read imo, also I was lazy and didn't worked on the audio debugger yet, hence the draft state (just wanted to open a PR to get some opinions on things to improve)
Anyway, I hope you like it 👍