87 Commits

Author SHA1 Message Date
73524105c9 Vita porting 2025-12-22 15:00:22 +01:00
Snesrev
578f90b3cc Oops I made a bug 2023-04-17 22:27:21 +02:00
Snesrev
f591d89f84 Some tooling to extract assets
Run:
restool.py decode
to extract assets into assets/defs/*

Run:
restool.py compile
to compile the assets back into a rom
2023-04-17 20:29:29 +02:00
Snesrev
62768600dc Rename enemy_projectile => eproj 2023-04-04 23:12:08 +02:00
Snesrev
ab7888fe41 Remove CopyToVramAtNextInterrupt 2023-04-04 23:07:28 +02:00
Snesrev
db4ae2a0be Inline RomFixedPtr with tcc 2023-04-04 22:55:56 +02:00
Snesrev
695cf0d931 Remove IndirRead / IndirWrite 2023-04-04 22:53:07 +02:00
Snesrev
d8bc06b9dd Remove more globals 2023-04-04 21:39:43 +02:00
Snesrev
61d9713cc5 Remove __plus__ 2023-04-04 21:06:22 +02:00
Snesrev
a1fc879f1b Remove more globals 2023-04-04 20:55:06 +02:00
Snesrev
30f4cfd958 Botwoon_Func_26 overwrote R18 2023-04-04 20:19:39 +02:00
Snesrev
6261da13e1 Phantoon modified wrong coordinate 2023-04-04 18:43:22 +02:00
Snesrev
e6b8ced260 Crocomire bugfix 2023-04-04 18:34:43 +02:00
Snesrev
7a5bfbbf56 Misc cleanup 2023-04-04 18:24:59 +02:00
Snesrev
b10285db38 Remove lots of __CFADD__uint16 2023-04-04 06:30:14 +02:00
Snesrev
9db0dd741d Draygon_Func_42 uses undefined varE24 value 2023-04-04 04:11:07 +02:00
Snesrev
bef6907f93 Breaking glass tube bug 2023-04-04 03:53:36 +02:00
Snesrev
e12ce49178 Maridia puffer bug 2023-04-04 03:48:48 +02:00
Snesrev
1bb7b762da Fix bug in wrecked ship robot 2023-04-04 03:39:14 +02:00
Snesrev
e44c3483be Kraid_Shot_Mouth: The real game doesn't preserve R18 2023-04-04 03:28:43 +02:00
Snesrev
bdad5fcf02 Wrecked ship ghost bugfix 2023-04-04 02:57:39 +02:00
Snesrev
67a2a460d5 Phantoon bugfix 2023-04-04 02:47:20 +02:00
Snesrev
2acb27fe10 Use CosineMult8bitFull 2023-04-04 01:40:14 +02:00
Snesrev
f207b03b69 ProcessEnemyPowerBombInteraction - R18 overwritten by death routine 2023-04-04 00:06:35 +02:00
Snesrev
5034ffc8e5 Some more cleanup + tcc fix 2023-04-03 22:14:39 +02:00
snesrev
0b58368de0 Lots of code cleanup (#32)
### Description
<!-- What is the purpose of this PR and what it adds? -->

### Will this Pull Request break anything? 
<!-- Will it break the compiling? -->

### Suggested Testing Steps
<!-- See if the compiling fails/break anything in the game. -->
2023-04-03 21:56:08 +02:00
Snesrev
45767ae6e0 Clean up sprite drawing 2023-03-20 22:22:05 +01:00
Snesrev
7c5c77bdf3 Clean up HdmaobjInstr 2023-03-20 21:05:58 +01:00
Snesrev
7a29af4260 Use int8 instead of char.
Char is not guaranteed to be signed.
2023-03-20 20:01:27 +01:00
snesrev
51ac35a65d Code cleanup (#28)
Lots of code cleanup
2023-03-20 18:12:36 +01:00
Snesrev
19c3651a3e Unpausing while kraid was sinking didn't work 2023-03-16 21:18:06 +01:00
Snesrev
ef8b850895 Some builds would crash on startup (Fixes #6) 2023-03-16 20:21:13 +01:00
Snesrev
027086067a Doors don't close the same way as on console (Fixes #21) 2023-03-16 18:30:35 +01:00
Snesrev
41a4b81783 Remove printf BUG: projectile_index invalid (Fixes #5) 2023-03-16 18:30:35 +01:00
Snesrev
513d0c64e5 Load autosaves too 2023-03-14 21:07:32 +01:00
Lywx
43b14838b7 Added nintendo switch support (#16)
This PR adds support for building sm on the nintendo switch, the
installation instructions are pretty much the same, with the difference
that you need a switch with atmosphere installed and the devkitpro
development environment, to install on the switch just copy the .ini,
the nro and the smc file.

---------

Co-authored-by: snesrev <111028570+snesrev@users.noreply.github.com>
2023-03-14 21:04:59 +01:00
Snesrev
a77d20f138 Remove u from constants 2023-03-14 20:22:53 +01:00
Snesrev
56df2670c0 Clean up some code 2023-03-14 20:18:51 +01:00
Snesrev
14b5e3d6ca Add autosave 2023-03-14 17:28:30 +01:00
Snesrev
7b4163780c WreckedShipOrangeZoomer_Func_2 missing from CallEnemyPreInstr 2023-03-14 17:07:18 +01:00
Snesrev
5fc07a1407 RoomMainAsm_ScrollingSky reads OOB
when layer1_y_pos is very small
2023-03-14 17:00:22 +01:00
Snesrev
b7cbd28294 Cleaned up some RomPtr 2023-03-14 04:13:20 +01:00
Snesrev
907b38010c hdma with repcount 0 should disable hdma. 2023-03-14 02:49:23 +01:00
Snesrev
d265a76f05 BG2 tilemap was messed up when unpausing (Fixes #20) 2023-03-14 01:25:21 +01:00
Snesrev
34751f5870 Fix phantoon crash bug (#20) 2023-03-13 23:25:14 +01:00
Snesrev
c18e33bf37 Crash in GrappleBeamFunc_FireGoToCancel 2023-03-11 18:48:45 +01:00
Snesrev
a3978bfd16 Remove some printf 2023-03-11 18:38:21 +01:00
Snesrev
a88829955d kBugSaves[] 2023-03-11 18:34:12 +01:00
Snesrev
5596f16cbb LoadStdBG3andSpriteTilesClearTilemaps does DMA from RAM 2023-03-11 18:33:53 +01:00
Snesrev
39ab392092 Remove some printfs 2023-03-11 18:09:42 +01:00