Commit Graph
100 Commits
Author SHA1 Message Date
fgsfds 7666ccf2c7 port: fix muzzle flashes on some guns 2023-08-15 00:49:35 +02:00
fgsfds 0cc29d2c99 port: fix healthbar rendering 2023-08-15 00:16:25 +02:00
fgsfds 1b1222494e port: move game viewport init to gfx_init() 2023-08-14 22:07:36 +02:00
fgsfds 94c3dfe51e port: fixup aspect ratio on the 3d parts of the title sequence 2023-08-14 22:07:16 +02:00
fgsfds 58d93cb083 port: hackfix psychosis gun crash 2023-08-14 19:43:05 +02:00
fgsfds f5bcc25e10 port: fix textureconfig-related texture corruption
explosions are still miscolored, but no longer garbage
2023-08-14 18:30:02 +02:00
fgsfds a31e2209c5 port: fix firing range
props to Ryan again
2023-08-14 17:53:08 +02:00
fgsfds 4d52a8e476 port: scale gun swivel only when mouse aiming 2023-08-14 17:42:48 +02:00
fgsfds c3fb50c358 port; refactor widescreen PR a bit
abstract aspect into a video* function

re-add gun swivel, but make it slower on hi res
2023-08-14 17:39:02 +02:00
fgsfds 65115089af Merge pull request #4 from MaikelChan/aspect_ratio
Sort of implemented arbitrary aspect ratio and mouse movement improvements
2023-08-14 17:24:57 +02:00
fgsfds 48bac90a7b Merge pull request #5 from babbygremlin/port
Fix default control scheme for combat sim
2023-08-14 17:18:35 +02:00
fgsfds 51808cd1f8 port: fix a bunch of controller-related bugs
don't completely override kb+m input when a controller is connected (fixes #3)

handle controller disconnection

add adequate default controller binds

add deadzone
2023-08-13 23:18:24 +02:00
fgsfds 758eb77578 port: fix credits crash
campaign is now more or less completable, other than the pushbox collision bug
2023-08-13 22:49:00 +02:00
fgsfds 358f788b61 port: read gbi command id correctly in gfxReplaceGbiCommands 2023-08-13 21:09:04 +02:00
fgsfds e0d4bf44b8 port: read command ids correctly when rendering in xray mode 2023-08-13 21:04:00 +02:00
fgsfds 7ec10febae port: swap intro commands properly 2023-08-13 20:30:28 +02:00
fgsfds 8acd495e91 port: revert the loaded_texture changes
they broke more than they fixed
2023-08-13 20:05:26 +02:00
fgsfds 5f11dd48a2 Revert "port: make the tmem_index allocation a little bit more sane"
This reverts commit 0f0e674f71.
2023-08-13 20:02:33 +02:00
fgsfds 38343bfbf1 Revert "port: change the loaded_texture system yet again; fix a couple crashes"
This reverts commit 6750bd9422.
2023-08-13 20:02:16 +02:00
fgsfds 76ed7f180e port: padoffsets are actually u16 2023-08-13 19:42:51 +02:00
fgsfds 6750bd9422 port: change the loaded_texture system yet again; fix a couple crashes
in combat sim once in a million years, in G5 and Villa
2023-08-13 18:52:15 +02:00
fgsfds d51a7bc9d6 port: rename some math functions to avoid conflicts with libc 2023-08-13 17:13:08 +02:00
fgsfds 6cb545aaf0 port: swap more cctv and linkliftdoorobj fields
props to Ryan for noticing
2023-08-13 16:48:21 +02:00
fgsfds 4b8c4a5bcd port: saner bg portal swapping 2023-08-13 15:52:43 +02:00
fgsfds 0a9a191f27 Update README.md 2023-08-13 12:05:59 +02:00
fgsfds 83c1bd3ffd ci: bundle DLL hell with windows builds 2023-08-13 11:56:54 +02:00
fgsfds 23c57ad033 ci: add placeholder file to data directory so it gets packaged 2023-08-13 11:45:42 +02:00
fgsfds cf1594bcbb ci: forgot to --add-architecture 2023-08-13 11:39:05 +02:00
fgsfds 10caa91099 ci: add even more missing deps 2023-08-13 11:37:19 +02:00
fgsfds 6f209d26d8 ci: add missing deps 2023-08-13 11:29:16 +02:00
fgsfds 6d777fb18f ci: start setting up CI 2023-08-13 11:24:24 +02:00
fgsfds c007bee536 port: don't use s32s for texture pointers 2023-08-13 01:13:03 +02:00
fgsfds 0f0e674f71 port: make the tmem_index allocation a little bit more sane 2023-08-12 22:42:38 +02:00
fgsfds 56ab86cddc port: support linear texgen without lookat set; set default values for lookat 2023-08-12 21:41:28 +02:00
fgsfds 8c9c0abee6 port: use uname -m instead of -p for machine arch 2023-08-11 23:43:31 +02:00
fgsfds ae01850ce1 Update README.md
clarify what 32-bit platforms means
2023-08-11 22:23:18 +02:00
fgsfds 319aaaa81d Update README.md 2023-08-11 22:13:20 +02:00
fgsfds 4f4280de58 port: on linux, default to host gcc with -m32
as suggested in #1

also do not abort clean on unsupported target arch
2023-08-11 22:06:39 +02:00
fgsfds dbd2da4923 port: LoadTLUT should probably mark textures for reload as well 2023-08-11 20:55:38 +02:00
fgsfds 16fcca7a2f port: hackfix incorrect size for RGBA textures; mark all textures as changed on load
this fixes the menu font, but it's probably a better idea to fix the whole loaded_texture system
2023-08-11 20:44:24 +02:00
fgsfds a803d5a4ec port: stub out G_RDPHALF_ commands
this will temporarily prevent crashing in combat sim but will result in black skies on maps that use this
2023-08-11 18:18:16 +02:00
fgsfds d888e82de6 port: fix vertex count in G_VTX 2023-08-11 15:19:17 +02:00
fgsfds 07adda3fa6 port: more reasonable mouse sensitivity
what the fuck was I trying to do here?
2023-08-11 00:03:37 +02:00
fgsfds 3416e0632d port: fix byteswapping the waypoint data 2023-08-11 00:03:16 +02:00
fgsfds 6396b38a6f port: fix (?) crash related to knocking out the secretary in defection 2023-08-11 00:02:59 +02:00
fgsfds 25d9e4a195 Update README.md 2023-08-09 23:02:24 +02:00
fgsfds b109d866dd port: fix linux build 2023-08-09 23:00:57 +02:00
fgsfds 075b7f9bd7 port: make the legal screen display the commit hash and platform 2023-08-09 22:54:42 +02:00
fgsfds fc16dc1330 port: nuke unused env var 2023-08-09 22:33:25 +02:00
fgsfds 28282f1c35 port: auto-generate headers like the decomp does
this does not require the ROM
2023-08-09 22:32:26 +02:00
fgsfds 67492e744d Update README.md 2023-08-09 22:09:53 +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 60e64e1a1d port: don't doubleswap envelope data
this fixes music running out of free channels
2023-08-09 19:08:48 +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 245d5095b5 port: remove hacks from makefile 2023-08-08 14:31:30 +02:00
fgsfds 62f3007d2a port: halfassed solution for segmented addresses; fix some dyntex related stuff 2023-08-08 14:30:59 +02:00
fgsfds f9b27d7d01 port: match rendering resolution to window resolution, but keep 4:3 for now
16:9 requires some work
2023-08-06 22:04:22 +02:00
fgsfds 885bfeaf38 port: disable indefinite wait in aiIfMusicEventQueueIsEmpty for now
might have to actually run audio in a different thread
2023-08-06 21:38:07 +02:00
fgsfds 2d6e6c887e port: add mp3 decoding via lieff/minimp3 2023-08-06 21:24:38 +02:00
fgsfds afae1a3aae port: fix chraction crash
bug?
2023-08-06 21:24:04 +02:00
fgsfds 9081421eba port: add stupid hack to avoid double-swapping audio data 2023-08-06 21:23:47 +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 af3e235348 port: reenable SSE/NEON checks in mixer 2023-08-06 15:52:54 +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 866be01860 port: swap ADPCM books and loop states 2023-08-06 15:50:07 +02:00
fgsfds 32c05e6a3d port: swap sequence headers 2023-08-06 01:18:07 +02:00
fgsfds e1b892e8b4 port: hack in mouselook 2023-08-05 03:13:56 +02:00
fgsfds da9046f745 port: swap RGBA color literals 2023-08-05 01:57:26 +02:00
fgsfds 51a27cba75 port: disable windows imagebase hack
that makes windows put the heap at a lower address instead
2023-08-05 01:13:40 +02:00
fgsfds 0e931b0be0 port: add gSPPerspNormalize support
this fixes the viewmodel
2023-08-05 01:12:47 +02:00
fgsfds ea8e49c870 port: linux support; horrible hack to avoid segmented address funny moments
linux support only tested a little bit in a VM
2023-08-04 23:44:20 +02:00
fgsfds 172f943891 port: remove GetModuleHandleA call 2023-08-04 21:49:22 +02:00
fgsfds e6965580a0 port: mostly unfuck texture loader 2023-08-04 21:47:54 +02:00
fgsfds a9b772ef99 port: fix hitscans and other uses of Gtri 2023-08-04 16:46:05 +02:00
fgsfds c2d1d9b4bf port: don't crash when reading briefing in the mission screen 2023-08-04 01:25:18 +02:00
fgsfds d6ee4f49d2 port: flesh out the input system a bit 2023-08-04 01:11:50 +02:00
fgsfds 05889b54cb port: partially unfuck menus 2023-08-04 01:11:19 +02:00
fgsfds 952d23de08 port: fix gun file swapping 2023-08-03 21:54:34 +02:00
fgsfds c8e3641bbc port: fix colors when both fog and SHADE_ALPHA are enabled 2023-08-03 18:26:59 +02:00
fgsfds a12d756d79 port: detect fog alpha usage 2023-08-03 16:58:52 +02:00
fgsfds 406900e253 port: detect fog color usage 2023-08-03 16:50:24 +02:00
fgsfds ff9030f5fb port: swap light bboxes properly 2023-08-03 16:50:14 +02:00
fgsfds 316516422b port: fix lookat loading; allow for multiple mipped textures 2023-08-03 16:17:31 +02:00
fgsfds 58120e299e port: fix (?) texture alignment, ignore LOD levels > 0 for now 2023-08-03 16:01:12 +02:00
fgsfds 46a9888647 port: hackfix modeswitching 2023-08-02 20:32:21 +02:00
fgsfds a542e93fe7 port: temporarily disable sleep timer 2023-08-02 19:45:49 +02:00
fgsfds 03ea57dab8 port: disable zbufDrawArtifactsOffscreen for now 2023-08-02 19:45:11 +02:00
fgsfds 9d1e40c5f7 port: unfuck font palettes 2023-08-02 19:44:41 +02:00
fgsfds a3c3f8df72 port: fix LOD textures exploding, fix palette loading 2023-08-02 19:44:13 +02:00
fgsfds 4fa7deed5a port: swap more modeldef nodes 2023-08-02 02:30:02 +02:00
fgsfds c0e73091f5 port: check GL attrib and uniform indices before using them 2023-08-02 02:29:38 +02:00
fgsfds c449a687cf port: fix vertex color indexing 2023-08-02 01:04:15 +02:00
fgsfds 23f5b72943 port: swap room verts 2023-08-02 00:11:51 +02:00
fgsfds 9ec6fa06f8 port: oops, forgot Makefile this whole time 2023-08-01 23:39:14 +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 9508b136ff port: replace old fast3d with libultraship-fast3d 2023-08-01 23:37:49 +02:00
fgsfds 157d46b73a port: fix tahoma 2023-08-01 01:28:08 +02:00