Matthew Coppola
1d14877bec
Allow changing vsync and framerate limit at runtime
...
Also implements a new menu item flag: MENUITEMFLAG_SLIDER_DEFERRED,
which only calls the MENUOP_GETSLIDER callback on entering dimmed mode,
storing its value for later ticks, and only calls the MENUOP_SET
callback on leaving dimmed mode. This was necessary to prevent the
framerate limit slider from immediately affecting the framerate, leading
to an annoying slow down as the value was decremented to 0.
2024-12-06 17:20:22 -05:00
Matthew Coppola
5aa1cc6117
Cache ints instead of strings for video modes
2024-12-06 17:20:22 -05:00
Matthew Coppola
1be0e3680b
Add video option to center the window
2024-12-06 17:20:22 -05:00
Matthew Coppola
09b0a12b0a
Allow changing video resolution at runtime + more
...
Fullscreen exclusive mode is togglable at runtime, as well, as a
dropdown menu with "borderless" and "exclusive" options. All variables
pertaining to video resolution, exclusive mode, and maximized state are
now synchronized. For instance, Alt+Enter will affect the state of the
fullscreen video option and maximizing the window via the title bar will
update the maximize window option accordingly.
2024-12-06 17:20:15 -05:00
fgsfds
a1ca69d9ee
port: fix issues mentioned in #530 and #532
2024-12-04 16:27:53 +01:00
fgsfds
0ad4492ff6
port: default to home directory for saves on OSX as well
2024-11-24 00:25:19 +01:00
fgsfds
f75a569075
Merge pull request #522 from ZenithMDC/centered-crosshairs
...
Center-align crosshairs, zoom range, and radar
2024-11-23 09:20:48 +01:00
fgsfds
d2d35263a4
port: sanitize controller names
...
because apparently some of them can't fucking resist putting a funny R or TM in there
2024-11-20 13:00:41 +01:00
fgsfds
ba1b6c3232
port: turns out depth_clamp is in core GL since 3.2
2024-11-20 12:51:35 +01:00
fgsfds
3c020cad84
port: detect gl core and GLES3 at runtime; add hacks to make it work properly
2024-11-20 12:07:18 +01:00
fgsfds
efda5a5f44
port: also try GL4.1 core; a little bit of cleanup
2024-11-19 17:37:19 +01:00
Catherine Reprobate
cea20b6f31
osx build
2024-11-17 10:51:45 -08:00
Matthew Coppola
fb18da239f
Move subpixel offset code & fix radar UV map
...
The subpixel offset code has been moved into the draw_rectangle
function, so it can be applied to more than just the fill_rectangle
function.
The radar texture was displaced along its V component and has
been corrected. It has also been subpixel-adjusted to align with the
player's radar dot.
2024-11-15 03:16:33 -05:00
Matthew Coppola
942c966bf2
Replace centered rects with subpixel offsets
2024-11-15 03:16:32 -05:00
Matthew Coppola
e0d59345c7
Center-align crosshairs and zoom range
2024-11-15 03:16:32 -05:00
fgsfds
28fceb67de
port: bring back the host_ structs for filemodel.c
...
this fixes the Pelagic 2 guard thing, but I still need to figure out how to get rid of them without breaking the shit out of everything
2024-11-15 00:42:04 +01:00
fgsfds
b88c3a120b
port: add scopes to cases in preprocess to prevent older compilers from having a heart attack
2024-11-14 19:20:27 +01:00
fgsfds
a6f5077609
port: 64-bit: fix crash site
2024-11-14 18:43:16 +01:00
fgsfds
2cb29e91c6
port: only run the menu blur filter once
2024-11-13 14:04:36 +01:00
fgsfds
55cc2d8e72
port: nswitch: basic Nintendo Switch port
2024-11-13 12:50:42 +01:00
fgsfds
0bdf79cc51
port: build: move to CMake
...
god forgive me
2024-11-12 22:08:18 +01:00
fgsfds
36f9e59304
port: 64-bit: fix jpn builds
2024-11-12 14:05:43 +01:00
fgsfds
3f887b2ecf
port: 64-bit: shrink audio bank allocation after loading
2024-11-12 13:53:52 +01:00
fgsfds
421ac0af79
port: 64-bit: fix extra fields in modelrodata_type11
2024-11-12 13:18:02 +01:00
fgsfds
163dbf9495
port: 64-bit: get rid of host_ structs; further cleanup
2024-11-12 13:13:42 +01:00
fgsfds
2f221b9a1e
port: 64-bit: fix warnings
2024-11-12 10:49:13 +01:00
fgsfds
1448cd597a
port: 64-bit: more cleanup
...
replace the byte swapping macros with the ones from platform.h
rename and move things to match the rest of the code
2024-11-12 10:34:10 +01:00
fgsfds
5c2082f58e
port: 64-bit cleanup: remove FileType, use LOADTYPE instead
2024-11-10 14:02:04 +01:00
fgsfds
23539a02a5
port: 64-bit cleanup: remove exit()/fprintf()
2024-11-10 10:53:59 +01:00
fgsfds
f37abc941e
port: 64-bit cleanup: remove dead preprocess code
2024-11-10 10:41:15 +01:00
Raf
d5ee41fe5d
Merge branch 'fgs-port' into port-x64
...
# Conflicts:
# .github/workflows/c-cpp.yml
2024-10-03 23:58:40 +08:00
fgsfds
2a5c3a351e
port: refactor gbcRomCheck a bit
2024-09-02 10:48:54 +02:00
MaikelChan
153ca3341e
Detect Perfect Dark GBC Rom, emulating Transfer Pak functionality.
2024-08-25 21:27:21 +02:00
Raf
589bdf1cd9
portx64: fixes #2 - hoverbike not carrying over to crash-site
2024-08-12 16:33:55 +08:00
Raf
3524ec73b7
portx64: fixes #1 - muzzle flashes broken on some weapons
2024-08-12 16:32:49 +08:00
Raf
e77b3172ed
portx64: a bunch of gcc14 fixes
...
portx64: fixed pal
Update c-cpp.yml
portx64: fixed linux build
portx64: fixed linux build
ops
portx64: fixed linux build, one more time
portx64: fixed linux build, one more time
2024-08-09 22:37:23 +08:00
Raf
01cbcd99cb
portx64: fixed a bunch of instances of Wincompatible-pointer-types + filesetup.c: use ALIGN macro
2024-08-09 02:31:10 +08:00
Raf
a9e82658fd
portx64: a couple things breaking the build in github - actual fix, plus renamed more functions in filebg.c
2024-08-09 01:21:28 +08:00
Raf
5bee1b0cce
portx64: a couple things breaking the build in github
2024-08-09 00:50:21 +08:00
Raf
a11abc0511
portx64: forgot to commit the removal of pdextract files
2024-08-09 00:47:55 +08:00
Raf
c519997b33
portx64: moved pdextract code to src/preprocess, renamed files and function names to follow the port standard
2024-08-08 22:00:08 +08:00
Raf
4d60c93beb
portx64: romdata: proper estimated size for setup files, renamed getEstimatedFileSize function
2024-08-08 20:54:59 +08:00
Raf
b44dbb16b5
Merge remote-tracking branch 'fgs/port' into port-x64
2024-08-08 17:17:20 +08:00
Raf
8b1e81f32a
portx64: pd-extract,preprocess: renamed "_x64" functions, removed now unused preprocess functions, increased snd heap size (x86)
2024-08-08 17:15:33 +08:00
Raf
9e34f80a2c
portx64: pd-extract audio: check for repeated pointers before converting
2024-08-08 04:13:08 +08:00
Raf
c1c71ea21d
portx64: pd-extract models: tons of fixes: data alignments, stargunfire, preprocess textures
2024-08-08 04:01:11 +08:00
MaikelChan
9cd978a7a9
Removed more APPLE checks.
2024-08-05 19:11:33 +02:00
MaikelChan
a60880ef80
Three point and shader improvements
...
- Fixed blurry menu background being unfiltered when three point is enabled.
- Some shader code refactor to reduce the amount of __APPLE__ defines: use the SAMPLE_TEX macro to sample textures.
- Detach shaders before deleting them.
2024-08-05 17:09:00 +02:00
MaikelChan
a4b5b110ec
Don't perform a filter mode change if the new mode is the same as the previous one.
2024-08-05 16:33:55 +02:00
fgsfds
897020b3fd
port: clean up depth_zfar remnants
2024-08-05 11:42:21 +02:00