XYZ struct proposal (#213)

* Ignore IDO warnings with styles we don't follow

* Fix multiple warnings in game_ui.c

* Define an Object_XYZ struct

* Replaced values in Object for Object_XYZ

* Documenting some values

* Update XYZ to ObjectTransform

* Match render_borders_for_multiplayer and convert #if 1 and #if 0 to #ifdef NON_EQUIVALENT

* Try using more libultra code for the gDPSetFillColor values

* Fix some broken NON_EQUIVALENT code

* Fix a couple of minor warnings in unknown_078050

* More warnings

* Match thread1_main, and clean up all warnings in main.c

* Matched main.c

* Document and cleanup some code in thread0_epc.c

* Fix all warnings in unknown_0255E0.c

* Document unknown_078050.c stuff

* Fix warnings in asset_loading.c

* Fix font warnings

* Fix minor memory.c warnings

* Fix warnings in camera.c

* Fix many more warnings in game.c

* racer.c warning fixes

* Match func_80008140

* func_800092A8 is close, but not quite matching

* Reconfigured unk80120AC0 to be ObjectSegment and have Object match it. Maybe it should be merged in?

* Make changes to get NON_EQUIVALENT building.

* Nearly match func_800092A8

* Get func_800092A8 REALLY close, and update the submodule to point to the newer location

* Matched func_800092A8 thanks to Synray

* Not sure why the commit value changed, but this is the latest

* Fix makefile for updated recomp project builds

* Match update_controller_sticks

* Do some documenting

* Implement suggestions from PR, and add ObjectSegment into Object struct

* Match two more funcs

* An if(0){} seems more appropriate after second thought

* Add size to ObjectSegment

* Update include/structs.h

Co-authored-by: AntonioCastelli <aatcastelli@gmail.com>

Co-authored-by: Ryan Myers <foldor@gmail.com>
Co-authored-by: AntonioCastelli <aatcastelli@gmail.com>
This commit is contained in:
Ryan Myers
2022-03-10 09:01:18 -05:00
committed by GitHub
co-authored by Ryan Myers AntonioCastelli
parent e2f17a78f9
commit d2eb45ff48
75 changed files with 1323 additions and 1898 deletions
+6 -6
View File
@@ -53,9 +53,7 @@ void alEvtqFlush(ALEventQueue *evtq)
osSetIntMask(mask);
}
#if 1
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C9C90/alEvtqPostEvent.s")
#else
#ifdef NON_EQUIVALENT
void alEvtqPostEvent(ALEventQueue *evtq, ALEvent *evt, ALMicroTime delta)
{
ALEventListItem *item;
@@ -108,6 +106,8 @@ void alEvtqPostEvent(ALEventQueue *evtq, ALEvent *evt, ALMicroTime delta)
osSetIntMask(mask);
}
#else
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C9C90/alEvtqPostEvent.s")
#endif
ALMicroTime alEvtqNextEvent(ALEventQueue *evtq, ALEvent *evt) {
@@ -164,9 +164,7 @@ void alSynAddPlayer(ALSynth *drvr, ALPlayer *client) {
osSetIntMask(mask);
}
#if 1
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C9C90/_allocatePVoice.s")
#else
#ifdef NON_EQUIVALENT
s32 _allocatePVoice(ALSynth *drvr, PVoice **pvoice, s16 priority)
{
ALLink *dl;
@@ -199,6 +197,8 @@ s32 _allocatePVoice(ALSynth *drvr, PVoice **pvoice, s16 priority)
return stolen;
}
#else
GLOBAL_ASM("lib/asm/non_matchings/unknown_0C9C90/_allocatePVoice.s")
#endif
ALParam *__allocParam(void);
+1 -1
View File
@@ -4,7 +4,7 @@
#include "types.h"
#include "macros.h"
#if 0
#ifdef NON_EQUIVALENT
//Thse need to be compiled with -mips3, and linked differently
unsigned long long __ull_rshift(unsigned long long a0, unsigned long long a1)
{
+1 -1
View File
@@ -1,7 +1,7 @@
/* The comment below is needed for this file to be picked up by generate_ld */
/* RAM_POS: 0x800C9B30 */
#if 0
#ifdef NON_EQUIVALENT
//This needs to be compiled with mips3, which isn't yet supported
long long __d_to_ll(double d) {
return d;