Commit Graph

89 Commits

Author SHA1 Message Date
someone2639
4858ea84dd Gamecube Controller Centering (#21)
* implement gc controller centering on boot

* add clamp macros too

* format

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-09-13 22:26:44 -04:00
someone2639
ca00332bb3 Handle all warnings (on libultra_d) (#20)
* handle kdebugserver warning

* profile.c warnings

* readhost.c warnings

* syncprintf

* log.c

* free.c

* rest of rg funcs

* remove only the part of exception thats causing a warning (we have got to remove more)

* explicitly split out thing in intmask

* remove link error from removing the part with the warning in exceptasm

* format

* use ultratype

* totalBytes fix

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-09-07 17:01:22 -04:00
CrashOveride95
318128f42c Fix CI typo that caused only libultra_rom to be built (#14) 2025-08-24 21:30:53 -04:00
CrashOveride95
b742894b55 New and improved make build system and other cleanups (#13)
* Remove unused C versions of gu functions which will conflict with ASM versions under the new build system
This is a holdover from the decomp, as it must support older libultra versions which used these functions; as we're basing this project off of the final 2.0L, they gotta go

* Comment out bugged unused debug code
Will be removed completely by #12 soon enough anyway, but this will break CI if I don't remove this

* C++ fix in ultra64.h

* New build system
Based off my personal "template" featuring makedepend and support for automatically building and installing all 3 library versions, along with colors
Still needs cleanup to make sure I've brought over everything from the previous makefile

* Fix clang_format

* CI fixes to account for the non-decomp build system

* Remove old makefile

* Remove decomp tools

* Accidentally removed format checker

* Change VERSION to TARGET

* Fix install target by removing unused files and bring back ZSort header

* Fix CI typo

* gzsort header removed, I will figure out how to add it in modsdk later

* just copy the whole PR folder instead and remove install.mk, unnecessary

* SDK installation shall be handled seperately

* Remove RMON and a few leftover KMC things

* Remove MODERN_CC, as everyone is gonna be building this on a modern compiler anyway
2025-08-23 22:58:24 -04:00
someone2639
dba3265aac Reactivate Assert Functionality, make ISV the only canon debug hardware (#12)
* add assertf; reactivate assertBreak

* newline after user crafted fmt string

* assertf implemented; EX cond fixed

* format

* make ISV the only initialize for now

* force initialize to 'autodetect'

* fix assertf with only format str

* format

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-08-23 17:41:37 -04:00
someone2639
4029179754 Controller remapping support (depends on #8) (#10)
* patch os_cont

* patch over controller.c

* patch contreaddata

* patch controller.h

* patch motor.c

* formatting

* merge OSContPad and OSContPadEx

* Add remapping support

* quick cleanup

* format

* allow resetting controller map (for remapping menus or other catastrophes)

* Document analog_mode

* Don't change motor command state if gamecube controller

* better comment and source

* document why the stick is like that

* make CI happy

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-07-31 08:36:33 -04:00
someone2639
195443a853 Gamecube Controller Support (#8)
* patch os_cont

* patch over controller.c

* patch contreaddata

* patch controller.h

* patch motor.c

* formatting

* merge OSContPad and OSContPadEx

* increment ptr if error channel

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-06-17 22:58:09 -04:00
someone2639
ece07a17ba Handle All Warnings (#2)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

* cseq warning

* csplayer

* env

* voicecheckword

* voicestopreaddata

* voicedata

* voicecontwrite4

* voice done

* sinf

* sched

* rg

* cosf

* timerintr

* settimer

* xprintf

* xldtob

* contram

* conteepwrite

* conteepread

* dumpturbo

* gt

* aisetnextbuf

* us2dex_emu

* loadtextureblockmipmap

* guloadtile_bug

* kmcprintf

* seq

* sndplayer

* synthesizer

* seqplayer again

* load

* fix warnings

* formatting

* address csplayer, gu

* remove if(0)

* another explicit fallthrough

* last explicit fallthrough

* simplify triple multiply

* its 4 multiplies

* its an octuple multiply

* CI formatting

* sltu in alRaw16Pull

* another sltu

* handle all sltu's

* sndplayer sltu

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-20 12:17:14 -05:00
someone2639
46f03ca93d Explicitly use clang-format 19 in CI, reintroduce auto format checks for include/ (#7)
* test clang v19

* require clang-format 19

* Try outputting patch as an artifact

* test CI

* actually set the correct filename

* only upload on failure

* try a more descriptive name

* remove intentional test change

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-18 22:13:12 -05:00
someone2639
01fa771093 Make Version 2.0L the only build (#6)
* Strike Version L

* for includes too

* format

* include format

* remove I J and K base files

* flatten folder

* only build libgultra

* clarify the new MGU switch

* flatten build folder

* remove stray #line

* address review

* and format

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-18 16:25:18 -05:00
Gregory Heskett
08e84e89ac Add new CODEOWNERS file (#5) 2025-02-17 23:00:42 -05:00
someone2639
c366e0122a Format the Repo (#3)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

* formatting changes

* add clang format files

* formatting changes

* make libgultra CI work

* install mips gcc too

* add format check tools

* Add formatting to CI

* Add CI (#4)

* make libgultra CI work

* install mips gcc too

* remove make setup

---------

Co-authored-by: someone2639 <someone2639@gmail.com>

* we don't use clang-tidy

* use 120 width for formatting

* a

* address clang-tidy messing up

* test

* align consecutive macros and declarations

* only align macros for now

* SpaceAfterCStyleCast: false

* format headers too

* remove cast space switch because its false by default

* pointers on left

* AlignConsecutiveBitFields: true

* install clang-format and clang-tidy on gh actions

* and clang-tools

* show diff in format check tool

* make CI work

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
🙏
2025-02-17 22:56:09 -05:00
someone2639
408c92afed Add CI (#4)
* make libgultra CI work

* install mips gcc too

* remove make setup

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-17 16:00:38 -05:00
someone2639
efbd931cbc Set up Makefile for modern building (#1)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
2025-02-17 11:28:31 -05:00
Derek Hensley
2717d451b9 Print function mdebug (#90)
* xprintf mdebug

* xlitob mdebug

* xldtob mdebug

* sprintf mdebug

* syncprintf mdebug

* ldouble + remove ultratypes.h from xstdio.h

* double only for IDO
2024-11-29 02:36:18 +09:00
Derek Hensley
6e861af404 Move compiler includes to include/compiler (#91) 2024-11-29 01:40:49 +09:00
Derek Hensley
80056b4961 FIXUPS -> MODERN_LD (#92) 2024-11-29 01:40:28 +09:00
cadmic
1616482098 Add VI_CTRL_ANTIALIAS_MODE_0 + oot comments (#89)
* Add VI_CTRL_ANTIALIAS_MODE_0 + oot comments

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Add VI_CTRL_ANTIALIAS_MODE_0 to vimodes

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-22 10:30:10 -06:00
Derek Hensley
6e9175b807 Modern GCC (#88)
* Add modern gcc makefile

* Add MODERN define to actually be able to build

* Better modern gcc builds

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: cadmic <cadmic24@gmail.com>

* Warnings

* MODERN_CC

* OPTFLAGS

* no-strict-aliasing

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: cadmic <cadmic24@gmail.com>
2024-08-22 10:29:10 -06:00
Derek Hensley
bcca1c8292 General docs + cleanup (#84)
* osCreateThread small cleanup

* osViSetSpecialFeatures

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* osAiSetNextBuffer

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* macros.h move to PRinternal.h

* dbgproto.h and dbgdefs.h moved to PRinternal

* Align OSPifRAM struct

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* LAN1 vimode comments

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Stack macros

* Hex for all ALIGNED macros

* leoDiskSTack ALIGNED(0x10)

* interrupt bug

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* ASM comment

* Revert "LAN1 vimode comments"

This reverts commit bed467a67172de611cde15744eb659f996f3d157.

* STACK_START

* FPCSR_RM_RN

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-20 00:19:01 -04:00
cadmic
bf1f007dc7 Don't hardcode version IDs in Makefile (#86) 2024-08-19 23:54:22 -04:00
Derek Hensley
8f96e1e71b vimode file comments (#85)
Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
2024-08-19 23:52:27 -04:00
cadmic
5ed26e7c0a Remove carriage returns from files (#87) 2024-08-19 23:49:17 -04:00
Derek Hensley
a68329aec1 Asm Formatting (#82)
* Replace STAY2 with per instruction macros

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* asm Formatting

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>

* Remove unused STAY macros

* space after comma for some asm args

---------

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-19 23:48:28 -04:00
cadmic
b755039f49 Use $(CROSS)ar instead of host ar (#83) 2024-08-18 22:28:41 -04:00