Commit Graph
156 Commits
Author SHA1 Message Date
fgsfds 54842f50db port: another UB fix in bg.c 2023-09-22 21:06:32 +02:00
fgsfds 5ae29afdeb port: fix some pointer ub in bg.c 2023-09-22 20:52:31 +02:00
fgsfds 0e5b4bde62 Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-28 15:55:54 +02:00
Ryan Dwyer 0b1aabf345 Set names for a heap of shotdata symbols 2023-08-27 21:27:53 +10:00
fgsfds e871156301 port: reduce or eliminate portal seams
by slightly extending the portal scissor boxes
2023-08-22 20:09:14 +02:00
fgsfds 9acd05f16c port: allocate room data from system heap
props to Ryan for the patch
2023-08-20 15:12:09 +02:00
fgsfds 034ff984cc port: fix s32 pointer in bgRenderRoomPass 2023-08-16 14:52:25 +02:00
fgsfds e0d4bf44b8 port: read command ids correctly when rendering in xray mode 2023-08-13 21:04:00 +02:00
fgsfds d51a7bc9d6 port: rename some math functions to avoid conflicts with libc 2023-08-13 17:13:08 +02:00
fgsfds a37441b221 port: hackfix a bunch of UB and seg-related issues
game now runs with -O2
2023-08-08 16:38:45 +02:00
fgsfds 62f3007d2a port: halfassed solution for segmented addresses; fix some dyntex related stuff 2023-08-08 14:30:59 +02:00
fgsfds eb8c4e9ee9 Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-06 18:52:09 +02:00
fgsfds da9046f745 port: swap RGBA color literals 2023-08-05 01:57:26 +02:00
fgsfds a9b772ef99 port: fix hitscans and other uses of Gtri 2023-08-04 16:46:05 +02:00
fgsfds 9433dc7769 port: make it not crash on the intro sequence and render SOME geometry 2023-08-01 23:38:06 +02:00
fgsfds f91401cb95 port: make the legal screen render correctly
also, total errno death in the same commit because I am dumb
2023-07-30 21:24:39 +02:00
fgsfds da94644c38 port: make it link and load
nothing happens after loading though
2023-07-29 23:21:35 +02:00
Ryan Dwyer 83e8265d5b Introduce RoomNum typedef 2023-06-20 19:14:13 +10:00
Ryan Dwyer 8647634a54 Decompile bgLoadRoom 2023-06-16 21:10:03 +10:00
Ryan Dwyer b97228e682 Fix beta builds when DEBUG is not defined 2023-06-03 12:43:56 +10:00
Ryan Dwyer 8a7c22adda Decompile bgRenderGdlInXray 2023-05-31 17:48:41 +10:00
Ryan Dwyer 2e386f7a34 Use ARRAYCOUNT in many more places 2023-05-28 00:48:58 +10:00
Ryan Dwyer 5255f7c346 Use Vtx/Col instead of struct gfxvtx, struct colour and u32 2023-05-27 13:22:14 +10:00
Ryan Dwyer d5a21a8459 Replace gDPSetVerticeArray with gSPVertex, rename gDPSetColorArray to gSPColor and rename gDPTri4 to gSPTri4 2023-05-27 10:27:15 +10:00
Ryan Dwyer 5cc44be4da Name all env symbols 2023-05-24 21:54:47 +10:00
Ryan Dwyer 92075c6fe7 Name almost all BG symbols 2023-05-23 19:37:20 +10:00
Ryan Dwyer 89152f7b40 Rename a heap of light and brightness symbols 2023-04-13 20:13:13 +10:00
Ryan Dwyer c87aa0567b Replace BG pointer math with a more semantically correct equivalent 2023-01-20 20:38:01 +10:00
Ryan Dwyer 68f2cd6db6 Merge version-specific debug files into one 2023-01-12 21:13:56 +10:00
Ryan Dwyer ba11c5634b Introduce uintptr_t 2022-12-07 21:00:03 +10:00
Ryan Dwyer c20a31db57 Create functionally equivalent C for handwritten func0002f490 and func0002f560 2022-12-02 20:18:50 +10:00
Ryan Dwyer b39c317812 Fix some typoed function names 2022-12-02 07:58:14 +10:00
Ryan Dwyer 3248fa9849 Rename and document room mtx functions 2022-11-28 17:48:59 +10:00
Ryan Dwyer 2d6d88cd6d ntsc-beta, pal-beta and pal-final: Introduce support for gcc 2022-11-26 19:53:48 +10:00
Ryan Dwyer 9f3481ccee Make remaining versions shiftable 2022-11-24 21:58:09 +10:00
Ryan Dwyer b8a469a14c ntsc-beta: Decompile bgReset 2022-11-24 17:46:40 +10:00
Ryan Dwyer ace7e6fca0 ntsc-beta: Decompile bgRenderScene 2022-11-20 23:38:43 +10:00
Ryan Dwyer 1c7dc246f5 Create functionally equivalent C for handwritten portalConvertCoordinates 2022-11-18 21:44:05 +10:00
Ryan Dwyer e3d77e8086 Avoid some potential UB in bgBuildTables 2022-10-31 17:30:51 +10:00
Ryan Dwyer 17583575e4 Introduce support for gcc 2022-10-12 22:26:19 +10:00
Ryan Dwyer 2431684b1e Decompile bgTestHitOnChr 2022-09-26 23:36:24 +10:00
Ryan Dwyer eeea819b2d Decompile bgTickPortalsXray 2022-09-20 23:58:19 +10:00
Ryan Dwyer c57dfc36c1 Decompile bgChooseXrayVtxColour 2022-09-20 21:39:12 +10:00
Ryan Dwyer f7cb81bac5 Improve mismatch of bgLoadRoom 2022-09-18 14:13:11 +10:00
Ryan Dwyer 15c067fe36 Decompile gasRender 2022-09-16 20:52:10 +10:00
Ryan Dwyer 80c5e004e0 Decompile tex0f1756c0 2022-09-11 19:42:45 +10:00
Ryan Dwyer 0b1ee2a52e Decompile func0f161d30 2022-09-11 14:55:53 +10:00
Ryan Dwyer bbf52f580b Add support for non-matching ntsc-final builds 2022-09-09 17:19:48 +10:00
Ryan Dwyer bee6ac7d58 Decompile bgBuildTables 2022-08-11 20:31:08 +10:00
Ryan Dwyer 9d2805430e Decompile bgTestHitOnObj 2022-08-08 17:50:48 +10:00