Matches, and split game.c into two (#393)

* Cleanup func_8007B46C, and WIP func_800143A8

* Match func_800143A8

* Match render_fade_circle and put the WIP func_8007CDC0

* Near match func_800B3740

* Add decomp me links to WIP funcs, and fix previous commit.

* Match func_800B3740

* Matched render_fade_waves

* Much better score for func_80066CDC

* WIP func_80080580

* Minor work in progress being saved

* Finish __osFinalrom naming mixup

* Move weather and particles rodata to fix a file split.

* Split game.c into another file thread3_main.c

* Update src/camera.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/fade_transition.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/fade_transition.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/objects.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/objects.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/objects.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

* Update src/objects.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

---------

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
This commit is contained in:
Ryan Myers
2023-05-19 13:13:26 -04:00
committed by GitHub
co-authored by Fazana
parent 9aff97c71e
commit df514e5f4e
34 changed files with 2313 additions and 2749 deletions
-1
View File
@@ -5,7 +5,6 @@
#include "sched.h"
#include "types.h"
#include "macros.h"
#include "f3ddkr.h"
#include "libultra_internal.h"
#include "viint.h"
+2 -4
View File
@@ -21,15 +21,13 @@ s32 gLeoFound = FALSE;
s32 __osLeoInterrupt(void);
extern s32 osViClock; //This is defined in another file somehow
extern u64 *gThread30StackPointer; //TODO: This should be __osFinalrom. Is this reused?
//u32 __osFinalrom;
extern u32 __osFinalrom; //This is defined in another file somehow
void osInitialize() {
u32 pifdata;
u32 clock = 0;
u32 leostatus;
u32 pistatus;
//__osFinalrom = TRUE;
gThread30StackPointer = (u64 *) TRUE; //TODO: This should be __osFinalrom. Is this reused?
__osFinalrom = TRUE;
__osSetSR(__osGetSR() | SR_CU1); //enable fpu
__osSetFpcCsr(FPCSR_FS | FPCSR_EV); //flush denorm to zero, enable invalid operation
+1 -1
View File
@@ -13,7 +13,7 @@ extern u32 __osViIntrCount;
OSDevMgr __osViDevMgr = {0};
u64 gThread30Stack[0x400];
u64 *gThread30StackPointer;
u32 __osFinalrom;
extern OSThread viThread;
extern OSMesgQueue viEventQueue;