Commit Graph

22 Commits

Author SHA1 Message Date
Luciano Ciccariello
b8e6ad0120
DRA+RIC CanTeleportToOtherCastle matching (#449)
Not a very special function per se. I struggled at de-duplicating the
four variables at the top of the function as using just one would give
me some minor reg swaps. I thought adding an enum as a returning value
but I think it is a bit over killing for how small the function is. It
is only called by `EntityAlucard`.

Interestingly, the function in DRA is different between HD and US. But
the HD version is identical to the duplicate found in RIC US. What I
suspect it happened is one of the developers while scrolling the various
functions, found the `- 14407` in an odd spot relative to the rest of
the function and moved it to make it consistent. But as some code from
DRA was copy&pasted to RIC, the same developer did not think to apply
the same change there.

EDIT: Note the `FIX_TO_I`. It is a new macro I added for another
function I failed to decompile.
2023-08-08 10:12:53 -07:00
sozud
26030a4692
Rewrite lints, lint more FIX (#439)
I noticed that my lints are already pretty slow and hard to maintain so
I moved them to rust and optimized them. All the files are now linted in
parallel, and we can do as many transforms to a single line as we want.
I think this provides a good baseline where we can have a big suite of
lints if we want to.

I added more cases to the FIX linter as well. Rust always puts a newline
at the end of a file so we picked up some changes due to that. I think
git wants you to do that anyway so it seems like an improvement to me.
2023-08-05 11:36:00 -07:00
sozud
60e5c27d38
Document some fixed point numbers, add script (#408)
I'm putting this up as a proof of concept for documenting fixed point
numbers. This does `self->velocityX` in NZ0 to get started. I'm
including a script to do this although it's currently hard-coded just
for velocityX. I think it can be extended for more situations. I chose
`SOTN_FIXED` for the macro because the Saturn SDK already uses `FIXED`.
I'm open to suggestions on the macro name. I chose 4 digits of precision
since that's the highest precision currently seen so far with
`SOTN_FIXED(0.1875);`
2023-07-30 09:44:26 -07:00
Luciano Ciccariello
6fb0937c3c Fix RoomDimensions struct 2023-07-06 17:25:55 +01:00
Luciano Ciccariello
3090f5a978 Delete NOP hack thanks to #267 2023-06-19 20:23:35 +01:00
Luciano Ciccariello
4731eb60e0 Prepare full HD integration in the pipeline 2023-06-14 22:29:07 +01:00
Luciano Ciccariello
6714ff693e Fix symbol usage 2023-05-27 11:13:49 +01:00
Luciano Ciccariello
a11ee8c978 DRA func_80108448 matching 2023-05-13 09:24:19 +01:00
Luciano Ciccariello
6dea1457c0 Makefile game version clean-up 2023-05-04 23:32:35 +01:00
Luciano Ciccariello
b68b7b55f3 Remove LOH, LOB and LOBU hacks 2023-04-05 19:43:19 +01:00
Luciano Ciccariello
cc8028d233 DRA func_800E81FC matching 2023-03-28 13:14:13 +01:00
Luciano Ciccariello
b699ac0f16 Primitive refactor 2023-03-24 12:44:15 +00:00
Luciano Ciccariello
e86f23fec1 Rename AllocPolygons to AllocPrimitives 2023-03-24 12:29:18 +00:00
Luciano Ciccariello
6e037ad61f WRP func_80189E9C matching 2023-03-23 00:24:25 +00:00
Luciano Ciccariello
5c6f6b5d6e Fix permuter when using ASM hacks 2023-03-13 01:43:07 +00:00
Luciano Ciccariello
cff3a9ec89 Add NOP hack 2023-03-12 00:31:14 +00:00
Luciano Ciccariello
f806ef63d0 quick fix 2023-03-12 00:13:28 +00:00
Luciano Ciccariello
2d303fa538 Fix __attribute__ decompilation error 2023-03-12 00:11:14 +00:00
Luciano Ciccariello
44925998bb Fix CollisionResult struct 2023-03-04 01:26:05 +00:00
Luciano Ciccariello
cf6bd74326 More SEL decompilation
Co-authored-by: @pixel-stuck
2022-12-22 10:33:20 +00:00
Alejandro Asenjo
095ebbe09c
func_8018A950 OK + macros.h + ABS (#2) 2022-10-15 23:17:26 +01:00
Luciano Ciccariello
fcf1f0773a Upload disassembly 2022-01-02 13:35:44 +00:00