fgsfds
840a2e73a5
port: implement screen shake
2023-09-03 19:12:29 +02:00
fgsfds
b6a3aef345
port: add logging and some command line args
...
--log: logs messages to pd.log
--boot-stage N: sets initial stage number to N (MP stages will crash or hang if booted like this)
--no-sound: disable sound
--rom-file S: set ROM filename
2023-08-31 12:54:18 +02:00
fgsfds
7d152b37ad
Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port
2023-08-29 14:00:48 +02:00
Alexandre-Xavier
e4742bcafb
Fix array out of bound in decoder.c
2023-08-29 01:07:44 +00:00
fgsfds
2b27c2dc6a
port: make matrices work with GBI_FLOATS
...
add GBI_FLOATS=1 to DEFINES to enable it
not enabling by default yet because not sure if it'll break anything
2023-08-26 13:49:23 +02:00
fgsfds
844139b339
port: restart currently playing MP3 when needed
...
there's probably a way to determine reset condition without adding an extra field to g_Mp3Vars, but I can't be arsed to figure it out
2023-08-26 10:34:35 +02:00
fgsfds
6fbb7e39ec
Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port
2023-08-20 14:41:57 +02:00
Ryan Dwyer
d7926f12ad
Fix incorrect rounding in C version of sinf
2023-08-20 16:34:38 +10:00
fgsfds
420053178e
Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port
2023-08-19 11:45:17 +02:00
Ryan Dwyer
d7c94b4d04
Fix UB in modelasm chrinfo handler
2023-08-19 19:14:10 +10:00
Ryan Dwyer
032c5166f4
Fix improper casting of model rwdata
2023-08-19 19:01:00 +10:00
fgsfds
8aa8d61bb8
Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port
...
this fixes collision bugs related to moving objects and rotation of a lot of stuff
2023-08-15 16:16:18 +02:00
Ryan Dwyer
24657743ff
Fix mtx3Copy in C translation
2023-08-15 22:28:11 +10:00
fgsfds
d51a7bc9d6
port: rename some math functions to avoid conflicts with libc
2023-08-13 17:13:08 +02:00
fgsfds
288b37a1b3
port: fix aEnvMixer; fix some misc warnings
...
hopefully that was the last of the big audio issues
2023-08-09 21:18:36 +02:00
fgsfds
18bab30c59
port: more UB/bug fixes
2023-08-09 13:07:02 +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
2d6e6c887e
port: add mp3 decoding via lieff/minimp3
2023-08-06 21:24:38 +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
81c1c206d4
port: make audio run at 60hz again but with smaller frames
...
this is required to tick music events correctly
2023-08-06 18:20:37 +02:00
fgsfds
063df3243d
port: make audio tick at 30hz, add hack to prevent popping
...
this is a shit solution, but it'll do for now
2023-08-06 18:08:21 +02:00
fgsfds
ffb5ca4b5b
port: begin implementing audio
...
mixer taken from sm64-port and modified to fit PD's naudio thing
MP3 playback not supported yet
audio buffering sucks
2023-08-06 15:51:07 +02:00
fgsfds
32c05e6a3d
port: swap sequence headers
2023-08-06 01:18:07 +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
cef885db72
Replace a heap of literals, mostly in sound code
2023-07-07 22:10:48 +10:00
Ryan Dwyer
3b4451a2d1
Name more pak symbols
2023-06-25 22:33:57 +10:00
Ryan Dwyer
83e8265d5b
Introduce RoomNum typedef
2023-06-20 19:14:13 +10:00
Ryan Dwyer
c55f9c805c
Decompile viUpdateMode
2023-06-18 19:43:27 +10:00
Ryan Dwyer
a53320f35a
ntsc-beta: Decompile mainInit
2023-06-18 10:28:15 +10:00
Ryan Dwyer
38c478259f
Name and document pathfinding functions
2023-06-13 21:44:29 +10:00
Ryan Dwyer
b97228e682
Fix beta builds when DEBUG is not defined
2023-06-03 12:43:56 +10:00
Ryan Dwyer
1df5e4dc51
Document propsnd functions
2023-06-03 11:17:22 +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
a8d92b1845
Replace calls to SetCombineLERP with custom modes
2023-05-24 18:24:28 +10:00
Ryan Dwyer
92075c6fe7
Name almost all BG symbols
2023-05-23 19:37:20 +10:00
Ryan Dwyer
4017d5cba5
Rename vm.c to vminit.c, tlb.s to vm.s and annotate vm.s
2023-05-21 15:54:54 +10:00
Ryan Dwyer
b4355ab55f
Annotate exceptasm.s
2023-05-20 16:43:48 +10:00
Ryan Dwyer
21cda43806
Use li and move pseudo instructions in ASM where possible
2023-05-20 00:08:54 +10:00
Ryan Dwyer
134ca8206f
Introduce NUM_FRAMEBUFFERS and NUM_GFXTASKS constants
2023-05-15 12:42:13 +10:00
Ryan Dwyer
8559aeed1f
Introduce FBALLOC and SCREEN constants for dimensions
2023-05-14 13:00:29 +10:00
Ryan Dwyer
73fc947f44
Name and document z-buffer functions
2023-05-14 09:23:24 +10:00
Ryan Dwyer
7349c3b172
Create functionally equivalent C for handwritten modelasm functions
2023-04-30 22:51:02 +10:00
Ryan Dwyer
63c57f9075
Rename some scheduler symbols and message queues
2023-04-24 20:13:33 +10:00
Ryan Dwyer
2d0c0583de
Decompile cdExamCylMove01
2023-04-12 22:32:42 +10:00
Ryan Dwyer
4651682d76
Decompile animReadBits
2023-04-12 21:31:02 +10:00
Ryan Dwyer
edebe0b1f0
Discover more object 3 flags
2023-01-17 21:33:16 +10:00