99 Commits

Author SHA1 Message Date
EpochFlame
cd98444622 split dolphin cflags 2023-01-11 12:14:57 -05:00
EpochFlame
f1bb588d9f match most of OSError.c 2022-11-26 20:07:50 -05:00
EpochFlame
8b106a1733 disable aoi by default 2022-11-12 13:33:43 -05:00
intns
1e07a6a866 Various cleanups & KochappyBaseMgr done 2022-10-19 23:11:49 +01:00
intns
a108cc1358 First round of != nullptr removal 2022-10-18 17:26:42 -04:00
HeartPiece
242d2ae862
Match + link more Dolphin files (#94)
* Padclamp progress

* FILE_POS progress

* FILE_POS progress

* init_cpp_exceptions progress

* Repair match, fix formatting

* dvdqueue and file_io progress

* Update AmcExi2Stubs.c

* Link OSSync.c

courtesy of Open_RVL

* Match + link OSMessage.c

Also fix JKRAramStream.cpp to be compatible with adjusted definitions of OSMessage functions

* link dvdqueue.c

* fix amc exi stubs

* Match + link ddh/main.c and main.c

both require a dumb static function to fix bss ordering, maybe it's a compiler flag instead? unsure

* fix main and ddh/main BSS naming

* match FILE_POS.C

finally 🆗 after suffering through compiler errors and mismatches

* Update FILE_POS.C

* the byte of- 87 dolphin files remain

* Update progress.csv

Co-authored-by: EpochFlame <82550703+EpochFlame@users.noreply.github.com>
2022-10-15 16:53:33 +11:00
HeartPiece
502cfa3a28
Match + link GXBump.c (#90)
Co-Authored-By: roeming <25447777+roeming@users.noreply.github.com>

Co-authored-by: roeming <25447777+roeming@users.noreply.github.com>
2022-10-07 22:25:58 -04:00
Luke Street
97c07eda27
Add dep tracking & use WiBo in CI (#47)
* Add dep tracking & use WiBo in CI

* Create empty tools/mwcc_compiler

* Disable UPDATE_README in CI
2022-09-08 13:22:44 -04:00
EpochFlame
25cbdeabbf OSCache
match and link OSCache
2022-08-25 17:17:42 -04:00
HeartPiece
dae21dc448 Link mbstring.c
requires -inline deferred for whatever reason
2022-08-25 15:29:52 +10:00
EpochFlame
cca1d64f06 match nubinit.c
thanks, @NWPlayer123
2022-08-18 17:51:05 -04:00
NerduMiner
b06c99b937 Implement Version Specific Compiling for C++ Code
gameConfig.cpp recently became unmatched because a slight difference in the code went unaccounted for during the transition to a c++ file.  This commit passes the VERNUM makefile variable to the compiler, and converts it into buildflags that can be used to implement version specific differences in a function.
2022-08-03 20:05:18 -04:00
EpochFlame
0e474b182f massive BSS refactor
fully split BSS.s
also clean up quite a few assembly files

note that J3DPacket.s and ogLifeGauge.s have had their BSS moved to J3DSys.s and ogScreen.s respectively for the sake of alignment

also, BSS inflates data% significantly due to how lcomm and comm show in the linkmap
2022-08-03 17:41:17 -04:00
EpochFlame
31ada062ab match and link GBA.c
Only GBAXfer to go, then that's the GBA SDK files complete!
2022-06-29 17:05:43 -04:00
EpochFlame
1f2625db74 link GBAWrite.c
it's OK!
2022-06-28 13:14:36 -04:00
SodiumChlorideLogic
7391a13be4 GBARead.c linked 2022-06-28 01:43:11 -04:00
EpochFlame
9d8909e4c4 match mainloop.c
trk debugger main loop decompiled
todo: figure out if the switch case is using the defines in Dolphin/trk.h

Co-Authored-By: SodiumChlorideLogic <19625889+SodiumChlorideLogic@users.noreply.github.com>
2022-06-26 16:54:49 -04:00
EpochFlame
1dab817c47 Major BSS refactor
id32 sinit has been made assembly for the good of the many. OS.c finally links.
2022-06-24 21:08:27 -04:00
EpochFlame
18f3d776d0
Osdotc (#17)
* match ClearArena

Co-Authored-By: Revo <projectrevotpp@hotmail.com>

* InquiryCallback

* decompile OSInit

need to cleanup OS.c after it's fully matched

Co-Authored-By: kiwi <49212064+kiwi515@users.noreply.github.com>
Co-Authored-By: HeartPiece <107153442+HeartPiece44@users.noreply.github.com>

* more OS.c progress

Co-Authored-By: HeartPiece <107153442+HeartPiece44@users.noreply.github.com>

* finish OS.c aside from linking

thanks, riidefi, for helping with __OSGetDIConfig
need rostr to not be applied

* simplify no-read-only

* OS.c matches but cannot link

due to BSS ordering memery. DriveInfo and DriveBlock need to be static, but that messes with BSS order. Making them extern changes code generation.

Co-authored-by: Revo <projectrevotpp@hotmail.com>
Co-authored-by: kiwi <49212064+kiwi515@users.noreply.github.com>
Co-authored-by: HeartPiece <107153442+HeartPiece44@users.noreply.github.com>
2022-06-24 13:50:39 -04:00
SodiumChlorideLogic
7e386cba62 Add make recipes for context generation. 2022-06-22 12:45:42 -04:00
EpochFlame
d99a945ff0 windows uses python, wine uses python3
different python settings based on wine
2022-06-13 18:14:48 -04:00
EpochFlame
55b7e0d0f4 link OSAlloc.c
largely taken from https://github.com/camthesaxman/smb-decomp/tree/master/libraries/os
2022-06-12 16:50:26 -04:00
EpochFlame
8583054a5c yoink OSAudioSystem.c from the Prime decomp
build/pikmin2.usa/main.dol: OK
Progress:
        Code sections: 80860 / 4652352  bytes in src (1.738046%)
        Data sections: 36249 / 712856   bytes in src (5.085038%)

You have 173 out of 10000 Pokos and collected 10 out of 201 treasures.
2022-04-27 22:35:57 -04:00
EpochFlame
52972ccd88 link _ppc_eabi_init.cpp
thanks, Antidote! this old compiler is jank with its peephole bug

Co-Authored-By: Phillip Stephens <antidote.crk@gmail.com>
2022-04-24 17:57:59 -04:00
Luke Street
bdc9d59596 ci: Generate map & run calcprogress 2022-04-08 19:36:02 -04:00
Luke Street
301149a97e ci: Add GitHub action 2022-04-08 18:33:13 -04:00
EpochFlame
90e6d95eb0 resolve locale.c 2022-04-06 00:33:58 -04:00
EpochFlame
2b2082654f update JSUStream 2022-04-04 19:14:24 -04:00
EpochFlame
fbbf0f6a9e match uart_console_io_gcn.c and dvdidutils.c
also cleanup pikiContainer.cpp
2022-02-09 00:11:25 -05:00
EpochFlame
922124cf7c cleanup wip comments and improve make clean 2022-02-04 03:22:41 -05:00
EpochFlame
941653f0d3 framework for usa demo 1 support 2022-01-30 22:39:28 -05:00
EpochFlame
7f4f25a198 tab alignment in makefile
minor edit
2022-01-30 13:04:20 -05:00
EpochFlame
d3c5a9afd2 match db.c and fix MWTrace.c
db.c appropriated from the Super Monkey Ball repository.

Co-Authored-By: camthesaxman <camthesaxman@users.noreply.github.com>
2022-01-15 12:49:46 -05:00
EpochFlame
50aeb77b79 decompile fstload.c
also format files

Co-Authored-By: camthesaxman <camthesaxman@users.noreply.github.com>
Co-Authored-By: GibHaltmannKill <67860669+GibHaltmannKill@users.noreply.github.com>
2022-01-14 17:45:30 -05:00
EpochFlame
a34603f8ad link target_options.c 2022-01-13 20:19:32 -05:00
EpochFlame
5ff49c0448 birth franklite.py into the world
link SISamplingRate.c
2022-01-13 18:38:39 -05:00
EpochFlame
031d36e65b frank.py setup 2022-01-13 18:08:37 -05:00
EpochFlame
18425534ab use pragma for dvderror inline avoidance
beats using the makefile to hardcode cflags
2022-01-06 14:34:25 -05:00
EpochFlame
14487276c5 decompile GDBase.c
note: be careful with sbss null initializations
2022-01-06 14:12:33 -05:00
intns
2d20ad2254 main_TRK OK and some JPAExTexShape work 2022-01-05 23:54:02 +00:00
EpochFlame
6575583e2a decompile dvderror.c
Co-Authored-By: camthesaxman <camthesaxman@users.noreply.github.com>
Co-Authored-By: intns <84647527+intns@users.noreply.github.com>
2022-01-05 17:21:49 -05:00
intns
375dd4b67a Add enum int to the cflags, problems galore 2022-01-05 14:33:43 -05:00
EpochFlame
3596ea601e msghndlr.s data cleanup & msgstyle gcc removal 2022-01-04 12:31:31 -05:00
EpochFlame
e3559248c6 makefile fixes + format newline 2022-01-04 10:02:34 -05:00
intns
defcd02d85 Fix makefile and add clang-format option (need latest clang-format) 2022-01-04 14:57:15 +00:00
intns
15b5250acc Further progress on aramMgr 2021-12-30 04:15:41 +00:00
EpochFlame
ee45bde95d achieve 1% code decompilation
decompile vec.c. woo, 1%!
2021-12-25 13:53:36 -05:00
EpochFlame
3fc7eabe7b Represent data progress in the printout.
Data is represented by treasures.
2021-12-24 13:40:39 -05:00
EpochFlame
95740d321c align console output from makefile
minor correction to enemyBase.s sbss
2021-12-19 22:48:45 -05:00
EpochFlame
d3f166ae45 decompile random.cpp and PPCArch.c
twilight princess coming in clutch
2021-12-18 18:53:19 -05:00