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
James R
37c3a55dda
Fix conflicts 522467a88
2022-09-05 11:56:30 -07:00
toaster
59044e7389
vsync is not broken anymore thanks to both Eidolon and jart's efforts
2022-09-05 15:26:28 +01:00
James R
48cc0158c2
SDL hint render driver to direct3d11
...
Windows bug; RPT files were not being generated for
toaster on Windows 11. Eventually it was narrowed to down
to direct3d driver specifically.
# Conflicts:
# src/sdl/i_video.c
2022-09-05 15:25:12 +01:00
Sally Coolatta
c77f9fa558
Add a billion debug prints
2022-08-30 06:26:35 -04:00
Sally Coolatta
107622968e
Merge branch 'master' into new-menus
2022-08-27 22:36:58 -04:00
Eidolon
85a132c149
Port Ediolon's SDL GameController work
...
Basically instantly solved all of the issues that made this branch completely unusable
2022-08-27 08:20:52 -04:00
Eidolon
91a404c190
cmake: rename executable
2022-08-23 21:44:25 -05:00
Eidolon
37d0857762
cmake: move debug strip to src/CMakeLists.txt
2022-08-23 21:32:29 -05:00
Eidolon
17128dc8f7
cmake: add exchndl link on mingw32
2022-08-23 21:26:17 -05:00
Eidolon
cf230b2182
cmake: build sdl target with threads support
2022-08-23 21:19:31 -05:00
toaster
54b9f3b7cc
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart.git into new-menus
...
# Conflicts:
# src/Sourcefile
# src/f_finale.c
# src/m_menu.c
# src/y_inter.c
2022-05-22 17:22:49 +01:00
toaster
48d451cfef
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart.git into new-menus
...
# Conflicts:
# src/d_ticcmd.h
# src/deh_soc.c
# src/deh_soc.h
# src/deh_tables.c
# src/dehacked.c
# src/f_finale.c
# src/g_game.c
# src/m_menu.c
2022-05-21 18:57:46 +01:00
toaster
38e6cba181
Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart.git into uncapped-absolution
...
# Conflicts:
# src/f_finale.c
# src/sdl/i_video.c
# src/st_stuff.c
2022-05-21 13:40:20 +01:00