Commit graph

1326 commits

Author SHA1 Message Date
Eidolon
e71f6fcc85 Add evil mutex bypass hack in console
Fixes KartKrew/Kart#795
2024-01-02 13:18:31 -06:00
James R
79012d00e8 Sound options: merge playmusicifunfocused/playsoundifunfocused into one cvar 2023-12-23 13:17:04 -08:00
Eidolon
2433d37d44 Switch from CPM to vcpkg 2023-12-15 02:49:15 +00:00
James R
49c7618741 I_ReportSignal: fix -Wformat-overflow 2023-11-21 20:27:48 -08:00
Eidolon
2c50b6a41a Partial revert "sdl/i_system.cpp: fix compiler errors"
This reverts commit bca2c8cb19.

The changes to I_ReportSignal introduced implicit calls to malloc.
malloc is not signal-safe.
2023-11-19 10:38:19 -06:00
Eidolon
cdde3cca38 Add handler for vid_wait
Allows vid_wait to toggle without changing modes
2023-11-11 09:56:03 -06:00
Eidolon
187f30cc64 rhi: use GL 2 instead of GL Core
Widens the hardware compat range without losing features (besides
debugging)
2023-11-04 20:15:51 -05:00
Oni
005d05ac15 Merge branch 'threaded-software' into 'master'
Threaded software

See merge request KartKrew/Kart!1553
2023-10-17 09:28:59 +00:00
AJ Martinez
f9f5c74244 New bans 2023-10-16 23:50:50 +00:00
Eidolon
89f8c7d15b Fix mac build 2023-10-15 15:12:42 -05:00
SteelT
0cd57b7712 Fix linux crash on quit 2023-10-14 23:06:03 -04:00
James R
bca2c8cb19 sdl/i_system.cpp: fix compiler errors 2023-10-14 18:49:29 -07:00
Eidolon
2d614781eb i_system.c -> cpp, disable mumble 2023-10-14 15:26:52 -05:00
James R.
2d9d06e267 Let window be resizable 2023-09-30 16:09:10 -07:00
James R.
18efb35602 SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size 2023-09-30 16:07:53 -07:00
Eidolon
2bad8126ac Delete outdated memcpy optimization
The libc memcpy is faster
2023-09-24 18:32:22 -05:00
James R.
acbe0b270c s_sound.c: consolidate music volume related functions, always use cvars internally 2023-09-22 02:00:50 -07:00
toaster
de60a2dbba new_sound.cpp: Compilation fix for non-TRACY 2023-09-19 18:46:23 +01:00
Eidolon
01240b1bd6 Tracy instrument new audio callback 2023-09-18 16:18:51 -05:00
Eidolon
17f6f9297a Add Tracy memory instrumentation
Does not capture C++17 aligned new/delete.
2023-09-18 16:17:04 -05:00
Eidolon
42e5646c15 Add Tracy frame time instrumentation 2023-09-18 16:16:08 -05:00
James R
6c0b042eed Refactor cvar definitions completely, move everything to cvars.cpp
- No need to call CV_RegisterVar
- Cvar definitions live in only one file, easier to locate
- Organized into sections -- netvars, cheats, etc.
- Use builder pattern to initialize cvars
- Still need to extern if you want to read the cvar value
2023-08-25 17:22:40 -07:00
James R
c5e341769b Remove unused cvars
- growmusicfade
- invincmusicfade
- music_resync_powerups_only
- music_resync_threshold
- renderstats (wasn't even registered in the console!)
- resetspecialmusic
- resume
- samplerate
- stretch
- tailspickup
2023-08-24 04:52:41 -07:00
toaster
ba7d319457 Make bios.pk3 consistent filename
Removes all reference to main.kart, not just the obvious ones.
2023-08-20 22:06:11 +01:00
James R
c6db634635 Completely refactor G_BuildTiccmd into many smaller pieces 2023-08-13 17:08:12 -07:00
Oni
713cb57486 Merge branch 'vape-mode' into 'master'
Slow down level music in Encore - "vape mode"

See merge request KartKrew/Kart!1359
2023-08-03 14:11:40 +00:00
James R
b681fe226a Add Resampler to music filter chain, let I_SetSongSpeed do something 2023-08-01 19:04:30 -07:00
AJ Martinez
c9cf1e4673 Add our custom controller mappings before init 2023-07-28 16:57:15 -07:00
toaster
277f7c51a3 V_ScaledWordWrap
Moves WordWrap to the font/V_GetFontSpecification system.

Much healthier long-term for our purposes, including the possibility of changing fonts for various contexts freely.
2023-07-12 09:00:29 +01:00
Sally Coolatta
c486ec19af SECRET_COLOR 2023-04-25 14:19:52 +01:00
Sal
40e9fd9644 Merge branch 'revert-revert-ignore-os-repeats' into 'master'
Ignore OS Repeats

See merge request KartKrew/Kart!1137
2023-04-17 04:16:53 +00:00
SteelT
bdfccb4478 Change static buffer size to 2048, fixes the "directive output may be truncated writing up to" error 2023-04-12 14:31:50 -04:00
toaster
fa48fa421b Guarantee initialisation of event.data2 to 0 for controller button event 2023-04-12 18:49:23 +01:00
toaster
3210b7b80c Revert "Revert "Ignore OS key repeats for game controls""
This reverts commit b6b5175bbee451579dc7d364cb40787e29b25a83.
2023-04-12 18:42:16 +01:00
toaster
74247d8100 Permit compiling with LOGMESSAGES disabled (and accomodate a crash early enough in the startup before the log is made, too) 2023-04-12 15:08:17 +01:00
toaster
adc2adb5c8 I_ShowErrorMessageBox for SDL interface
Handles showing the error message box on quit.
- Polite communication that the game fell over and that you (probably) didn't do anything wrong
- Accomodates pointing you to UNIXBACKTRACE and _WIN32 exchndl crash logs if relevant
- Points you to the specific dated and timed log file that contains the error
- Tells you that the vague and often confusing error message (like I_Error) is for a programmer, server host, or add-on creator
- Hee Ho!
2023-04-12 14:59:12 +01:00
Eidolon
91a6bcf8be Merge branch 'shader-postproc' into 'master'
Shader-based postimg effects

See merge request KartKrew/Kart!1138
2023-04-04 03:37:43 +00:00
Eidolon
356e3317df hwr2: Do postimg in hardware
Depends on updated shaders
2023-04-02 19:46:21 -05:00
Eidolon
769ce2ef65 Add I_GamepadRumble, I_GamepadRumbleTriggers 2023-04-02 21:56:39 +01:00
Eidolon
a9fcff852d rhi: Rewrite shader loading
Multiple shader sources, simpler macro definition, and slightly more
data driven.
2023-04-01 17:32:34 -05:00
James R
da004414a3 Play a goofy sound when I_Erroring
Reorders shutdown in I_Error a little bit so the message
box displays before I_ShutdownSound and SDL_Quit (so the
sound can continue playing while the message box is open).
This should not have any other effects and
I_ShutdownGraphics is still done beforehand, which closes
the main game window.
2023-03-30 17:13:55 -07:00
Eidolon
4210b45a41 Load gamecontroller(_user).txt gamepad mappings 2023-03-24 14:19:58 -05:00
Eidolon
aa0673c43f Print the device name and GUID for connected pads 2023-03-23 22:55:46 -05:00
Oni
b9bbb6cb8a Merge branch 'conditions-cascading' into 'master'
Conditions Cascading

Closes #366

See merge request KartKrew/Kart!1053
2023-03-23 23:51:30 +00:00
toaster
5a7f7b58f0 HandleGamepadDeviceEvents: Call at all junctures where event_t are digested
Permits controllers to actually be added when starting with -server
2023-03-19 17:27:23 +00:00
toaster
4c0077e07c Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into conditions-cascading 2023-03-19 13:01:06 +00:00
James R
c503ef9492 Merge branch 'warn-duplicate-texture-names' into 'master'
Warn about duplicate textures in data files

Closes #456

See merge request KartKrew/Kart!1044
2023-03-18 11:09:28 +00:00
James R
a08c0d478c signal_handler_child: call G_DirtyGameData for NEWSIGNALHANDLER too 2023-03-17 22:27:35 -07:00
toaster
3e900d7f57 G_DirtyGameData: Dirty bit only applied in I_Error and signal handlers, nowhere else
- Unfortunately, the way this system previously worked, the unlock was given to you for free if you accidentially opened two copies of the game at once.
- Instead, open the file in r+ mode, shimmy along 5 bytes, and write a `true` to be read later.
- Far more memory safe than rewriting the entire gamedata out on crash.

ALSO:
- crashflags has been split into boolean evercrashed and UINT8 musicflags.
    - We don't need to track if the LAST session was a crash, at least not right now.
    - Opens the floor up to other music like Loser Club happening on the Challenges menu.
2023-03-17 14:42:06 +00:00
James R
666837c620 Call R_PrintTextureDuplicates on I_Quit too
Fixes crash from thread terminating if the program exits
before the title screen.
2023-03-16 23:23:16 -07:00