James R
1d688c3417
sdl/i_system.c: add -nofork option to disable forking signal handler
2023-02-14 04:16:57 -08:00
Oni
d42fdd0346
Merge branch 'music-debug' into 'master'
...
Music debugging, devmode music
See merge request KartKrew/Kart!885
2023-01-25 00:14:42 +00:00
toaster
b6be0ef6e8
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into music-debug
...
# Conflicts:
# src/audio/xmp.cpp
# src/audio/xmp_player.cpp
# src/sdl/new_sound.cpp
2023-01-22 15:20:14 +00:00
SteelT
aef982c8d5
Fix XPM window icon not being used
2023-01-21 18:47:29 -05:00
James R
dfd13b5a7a
Merge branch 'fix-nosound' into 'master'
...
Fix -nosound command line option not disabling sound effects
Closes #405
See merge request KartKrew/Kart!883
2023-01-21 20:26:51 +00:00
Eidolon
ccc10eadd0
hwr2: Reformat C++ code
2023-01-14 19:59:41 -06:00
Eidolon
fcb4dfe3d7
hwr2: Restore legacy OpenGL temporarily
2023-01-14 19:52:33 -06:00
Eidolon
b932607359
hwr2: Remove sw testing state from sdl video
2023-01-14 19:52:10 -06:00
Eidolon
01ddbf6dcf
(WIP) hardware: add render hardware interface
2023-01-14 18:40:26 -06:00
James R
d5302d9e5d
Merge branch 'clang-format-adjustments' into 'master'
...
cxx: clang-format adjustments
See merge request KartKrew/Kart!880
2023-01-12 19:09:41 -08:00
James R
49c5c785bf
Remove musictype_t, S_MusicType and I_SongType return implementation string
...
Lua API change: S_MusicType now returns string instead of number
2023-01-12 02:50:02 -08:00
James R
eb8d03f479
Do not disable and reenable sounds entirely when window focus changes
...
Sounds are not started if the window is unfocused,
regardless of sound_disabled.
Fixes -nosound not working (sounds would always be
reenabled if window comes into focus).
2023-01-11 18:22:06 -08:00
Eidolon
f43de07fd1
cxx: clang-format adjustments
2023-01-09 20:02:19 -06:00
Eidolon
9f649d7701
audio: conditionally shutdown SFX/Music players
...
Fixes a potential segfault during startup where the sound hasn't been
initialized yet, but an I_Error occurs while loading data.
2023-01-09 14:58:59 -06:00
James R
9be7563353
sdl/i_video.cpp: fix -Wsign-compare
2023-01-07 07:51:54 -08:00
Eidolon
b57c92efd3
cxx: Convert sdl/i_video.cpp
2023-01-07 01:24:55 -06:00
Sal
99e6301365
Merge branch 'fix-window-refocus' into 'master'
...
SDL: only react to window focus changes if state actually changes
See merge request KartKrew/Kart!859
2023-01-06 02:29:13 +00:00
James R
16ac11d76e
sdl/i_main.cpp: guard entire init_exchndl behind _WIN32
...
Fixes -Wunused-function
2023-01-05 18:06:52 -08:00
Eidolon
1094f844a6
Merge branch 'loadlibrary-exchndl' into 'master'
...
core: load exchndl.dll at runtime, RINGRACERSWADDIR
See merge request KartKrew/Kart!857
2023-01-05 23:30:23 +00:00
James R
dfd8a36f8f
sdl/i_main.cpp: fix -Wliteral-suffix
2023-01-05 03:51:04 -08:00
James R
78fa572df0
SDL: only react to window focus changes if state actually changes
...
Because the state carries over for each call to
Impl_HandleWindowEvent, once the window has been focused,
events that do not change the focus state behave as if the
window was just refocused, anyway.
On linux i3wm, some such window events propogate
constantly in fullscreen mode.
2023-01-04 23:11:15 -08:00
Eidolon
4522b4953e
core: change SRB2WADDIR var to RINGRACERSWADDIR
2023-01-04 19:36:33 -06:00
Eidolon
d53efbdace
core: load exchndl.dll at runtime
...
This allows the game to run without exchndl.dll present.
2023-01-04 19:34:41 -06:00
Eidolon
b95fd459b9
cmake: Remove SDL2_mixer and OpenMPT
...
Libraries superceded by libxmp-lite and new mixer.
2023-01-04 16:51:12 -06:00
Eidolon
8c259487b2
audio: Add pure-ISO C++17 audio mixer and backend
...
This replaces SDL2_mixer.
2023-01-04 16:51:12 -06:00
Eidolon
ba109d8981
core: Catch and I_Error uncaught exceptions in main
2023-01-04 16:51:12 -06:00
Eidolon
be021baa02
Add extern "C" in C++ to all headers
2022-12-30 19:26:16 -06:00
James R
5395194ed6
cmake: generate config.h at build time, always rebuild comptime.c
2022-12-27 00:59:28 -08:00
Sally Coolatta
38d8281a6b
Merge branch 'master' into cmake-sources
2022-12-15 19:54:59 -05:00
Sal
dbf11e228d
Merge branch 'vsync-default-off' into 'master'
...
Make vsync default to off
See merge request KartKrew/Kart!794
2022-12-02 05:06:25 +00:00
James R
07c30a20c2
Move all sources into CMakeLists.txt
...
Changing Sourcefile did not automatically update the CMake
cache.
2022-11-28 21:46:43 -08:00
SteelT
7b0361a6f2
Make vsync default to off
2022-11-28 23:05:54 -05:00
Eidolon
d31037abc9
cmake: Remove asset hashing, CMAKE_ASSETS_DIR
...
Simplifies build setup for cmake.
# Conflicts:
# assets/CMakeLists.txt
# src/config.h.in
# src/sdl/i_system.c
2022-11-27 02:44:10 -08:00
Eidolon
04674ca93b
Include exchndl with <>
2022-11-27 02:44:10 -08:00
James R
1dd25181a9
cmake: use SRB2_SDL2_EXE_NAME, append git branch, add SRB2_SDL2_EXE_SUFFIX
2022-11-27 02:44:10 -08:00
Eidolon
0677d59d51
cmake: Build all deps and static link
...
Overhaul cmake build
2022-11-27 02:44:10 -08:00
James R
ad464817dd
Fix -Wunused-variable and -Wunused-parameter
...
blame 2304ef28a5
2022-11-19 01:39:51 -08:00
SteelT
2304ef28a5
Set vsync on screen update or resolution change in software mode
...
Similar to what the OGL code does, fixes vsync not being properly applied on game startup
2022-11-07 14:32:13 -05:00
Eidolon
4db2c48cc3
cmake: set executable name to ringracers
2022-10-08 20:38:45 -05:00
James R
f6a5ed9c6c
Remove NONET
2022-09-24 19:22:04 -07:00
AJ Martinez
ada40b421c
Mindelay: Never draw ping outside of games
2022-09-20 20:29:34 -07:00
AJ Martinez
e242207d10
Mindelay: Oni suggestions rollup
2022-09-20 19:01:54 -07:00
James R
4c89619ac4
Merge branch 'sdl-vsync' into 'master'
...
SDL: Support setting vsync at runtime
See merge request KartKrew/Kart!663
2022-09-17 07:28:55 +00:00
Sal
94d7c497b0
Merge branch 'hooklib-port' into 'master'
...
Hooklib refactor ported and (mostly) squashed
See merge request KartKrew/Kart!662
2022-09-11 06:30:07 +00:00
Sally Coolatta
c95acb120a
Merge branch 'master' into ogl-in-software
2022-09-08 14:28:29 -04:00
Sally Coolatta
f6fd8f6728
OpenGL instead of Direct3D11 for Software blitter
2022-09-08 12:51:47 -04:00
toaster
a5043b5be8
Fixed Oni's controller-related SIGFPE
2022-09-07 22:08:12 +01:00
toaster
975ed1f136
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into new-menus
...
# Conflicts:
# src/d_main.c
2022-09-07 21:39:34 +01:00
Sally Coolatta
3149d7738f
Revert "vsync is not broken anymore thanks to both Eidolon and jart's efforts"
...
This reverts commit 59044e7389 .
2022-09-07 01:31:48 -04:00
toaster
b696b1e378
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into sdl-vsync
...
# Conflicts:
# src/sdl/i_video.c
2022-09-06 19:19:22 +01:00