mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Several matches, documentation, and tool updates (#377)
* WIP func_80068FA8 * WIP func_80069790 * Match func_80069790 * WIP func_80068FA8 * WIP func_80068FA8 * Near match func_80068FA8 * Regalloc diff with func_80068FA8 * Match func_80068FA8 * Cleanup casts we don't need, and get rid of unused symbols from undefined_syms.txt * Increase score for func_80066CDC * Increased score of render_fade_circle * Get func_80031BB8 back to NON_MATCHING after one struct definition got updated * Make asm_processor linked to the original repository as a submodule to keep it up to date * Update recomp to latest * Updated diff.py to the latest version. One of the recent tools updates gives me line diffs in diff.py finally! * WIP func_80010994 * Update func_80010994 WIP * D_8011AD21 is not an array * Cleanup * Match func_800155B8 * WIP func_80010994 * Get func_80010994 to NON_MATCHING status * WIP render_3d_model * Update render_3d_model WIP * WIP render_3d_model * Match unused func_8001E13C * WIP func_80011264 * Match func_800113CC * Udpate func_80011AD0 and then use that knowledge to add some details to a few objects * Fix warnings * Bring func_80011AD0 closer to matching * Match func_80011AD0 * MAtch func_800138A8 * Cleanup * Change variable type for D_8011AEDC to be an Object as it matches what it's used as in func_8001BDD4 * Match func_8001BDD4 * Match func_8001BC54 and document the camera obj list * Accidentally deleted the generate_ctx.sh somehow. Adding it back in * Match func_8002A31C * Make D_800DC8AC an array of Vec3f instead * Update src/object_functions.c Co-authored-by: David Benepe <benepe96@gmail.com> * Update src/object_functions.c Co-authored-by: David Benepe <benepe96@gmail.com> --------- Co-authored-by: David Benepe <benepe96@gmail.com>
This commit is contained in:
co-authored by
David Benepe
parent
2cda09c5fa
commit
6d99776962
@@ -20,6 +20,7 @@ u8 sPlayerID[16];
|
||||
|
||||
/**
|
||||
* Return the serial interface message queue.
|
||||
* Official name: joyMessageQ
|
||||
*/
|
||||
OSMesgQueue *get_si_mesg_queue(void) {
|
||||
return &sSIMesgQueue;
|
||||
@@ -27,6 +28,7 @@ OSMesgQueue *get_si_mesg_queue(void) {
|
||||
|
||||
/**
|
||||
* Initialise the player controllers, and return the status when finished.
|
||||
* Official name: joyInit
|
||||
*/
|
||||
s32 init_controllers(void) {
|
||||
UNUSED s32 *temp1;
|
||||
@@ -55,6 +57,7 @@ s32 init_controllers(void) {
|
||||
/**
|
||||
* Reads arg0 for a set of flags on whether to read, write, or erase any save data.
|
||||
* Also reads the latest inputs from the controllers, and sets their values.
|
||||
* Official name: joyRead
|
||||
*/
|
||||
s32 handle_save_data_and_read_controller(s32 saveDataFlags, s32 updateRate) {
|
||||
Settings **allSaves;
|
||||
@@ -176,6 +179,7 @@ u16 get_buttons_held_from_player(s32 player) {
|
||||
/**
|
||||
* Returns the buttons that are newly pressed during that frame.
|
||||
* NOTE: This was a u16, but we only got a match in menu_ghost_data_loop when it was a u32 for some reason
|
||||
* Official name: joyGetPressed
|
||||
*/
|
||||
u32 get_buttons_pressed_from_player(s32 player) {
|
||||
return gControllerButtonsPressed[sPlayerID[player]];
|
||||
@@ -183,6 +187,7 @@ u32 get_buttons_pressed_from_player(s32 player) {
|
||||
|
||||
/**
|
||||
* Returns the buttons that are no longer pressed in that frame.
|
||||
* Official name: joyGetReleased
|
||||
*/
|
||||
u16 get_buttons_released_from_player(s32 player) {
|
||||
return gControllerButtonsReleased[sPlayerID[player]];
|
||||
@@ -190,6 +195,7 @@ u16 get_buttons_released_from_player(s32 player) {
|
||||
|
||||
/**
|
||||
* Clamps the X joystick axis of the selected player to 70 and returns it.
|
||||
* Official name: joyGetStickX
|
||||
*/
|
||||
s8 clamp_joystick_x_axis(s32 player) {
|
||||
return clamp_joystick(sControllerCurrData[sPlayerID[player]].stick_x);
|
||||
@@ -197,6 +203,7 @@ s8 clamp_joystick_x_axis(s32 player) {
|
||||
|
||||
/**
|
||||
* Clamps the Y joystick axis of the selected player to 70 and returns it.
|
||||
* Official name: joyGetStickY
|
||||
*/
|
||||
s8 clamp_joystick_y_axis(s32 player) {
|
||||
return clamp_joystick(sControllerCurrData[sPlayerID[player]].stick_y);
|
||||
@@ -226,6 +233,7 @@ s8 clamp_joystick(s8 stickMag) {
|
||||
|
||||
/**
|
||||
* Used when anti-cheat/anti-tamper has failed in func_8006A6B0()
|
||||
* Official Name: joySetSecurity
|
||||
*/
|
||||
void disable_button_mask(void) {
|
||||
gButtonMask = 0;
|
||||
|
||||
Reference in New Issue
Block a user