diff options
| author | Alejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com> | 2024-07-06 09:47:49 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 09:47:49 -0300 |
| commit | c348962cab034335f5eb1ee4bc2ed4851f40542e (patch) | |
| tree | d3fffe889776bc638195982b3f16852c09cd834d /src/sys | |
| parent | 24e316a2b26ff768f15ec217798898b4b0a7b8f9 (diff) | |
Sector Z, Fortuna & General Docs (#261)
* Sector Z Docs initial
* Sector Z docs
* some other things
* correction
* Space Junk
* SectorZ_SetLevelObjects
* rename assets with correct prefix
* aSzBackgroundTex
* details
* pr review
* Sector X initials
* Meteo Initials
* Sector X things I forgot
* fox_tr360 & fox_ve1 & fox_so initials
* fox_so details
* Zones initials
* More Zones initials
* more zones initials
* area 6 initials
* fortuna inits
* fortuna actors
* some more docs
* more docs for Fortuna
* fix mistake in data incorrectly imported
* Fortuna Radars
* BossFO
* Sector Y Initials
* Venom 2 general Docs
* Some Corneria Docs
* Actor, Scenery and Boss IDs in update and draw functions of gObjectInfo
* more docs and this usage
* fox_360 this usage
* more actor types and this usages
* fox_effect type usage
* training docs
* some Sector X docs
* fix incorrect usage of "this"
* fix comment
* more docs
* funcNames
* fox_bg spacing
* boolean
* scenery corneria bumbs
* terrain bumps
* corneria arch
* more corneria objects
* hitboxes
* more corneria objects
* more corneria level objects
* more corneria objects
* aCoWaterfallDL
* corneria docs
* more corneria docs
* Granga swork start
* corneria swork
* Corneria
* Corneria Granga docs
* more granga docs
* granga work buffer enum
* CarrierParts enum use
* option
* Corneria Docs
* GRANGA_FWK
* fox_co.h header
* fix Fault_FillRectangle typo
* PR reviews
* sCsTeamInitialPos
* Doodad
Diffstat (limited to 'src/sys')
| -rw-r--r-- | src/sys/sys_fault.c | 4 | ||||
| -rw-r--r-- | src/sys/sys_joybus.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/sys_fault.c b/src/sys/sys_fault.c index 56bdc7ed..35477807 100644 --- a/src/sys/sys_fault.c +++ b/src/sys/sys_fault.c @@ -50,7 +50,7 @@ const char* sFloatExceptions[6] = { "Unimplemented operation", "Invalid operation", "Division by zero", "Overflow", "Underflow", "Inexact operation", }; -void Fault_FillRectange(s32 xPos, s32 yPos, s32 width, s32 height) { +void Fault_FillRectangle(s32 xPos, s32 yPos, s32 width, s32 height) { u16* pixel; s32 i; s32 j; @@ -167,7 +167,7 @@ void Fault_DisplayDebugInfo(OSThread* thread) { causeIndex = 17; } Fault_Wait(3000); - Fault_FillRectange(15, 15, SCREEN_WIDTH - 30, SCREEN_HEIGHT - 30); + Fault_FillRectangle(15, 15, SCREEN_WIDTH - 30, SCREEN_HEIGHT - 30); Fault_Printf(30, 40, "THREAD:%d (%s)", thread->id, sFaultCauses[causeIndex]); Fault_Printf(30, 50, "PC:%08XH SR:%08XH\tVA:%08XH", context->pc, context->sr, context->badvaddr); osWritebackDCacheAll(); diff --git a/src/sys/sys_joybus.c b/src/sys/sys_joybus.c index cbdbf1ce..46ba7fb2 100644 --- a/src/sys/sys_joybus.c +++ b/src/sys/sys_joybus.c @@ -63,7 +63,7 @@ void Controller_UpdateInput(void) { s32 i; for (i = 0; i < 4; i++) { - if (gControllerPlugged[i] == 1 && sNextController[i].errno == 0) { + if ((gControllerPlugged[i] == 1) && (sNextController[i].errno == 0)) { sPrevController[i] = gControllerHold[i]; gControllerHold[i] = sNextController[i]; gControllerPress[i].button = |
