ddnet/src/engine
Robert Müller 3f1f94c9d8 Fix segfault in SDL_JoystickClose on client quit
Instead of closing the joysticks manually, use `SDL_QuitSubSystem(SDL_INIT_JOYSTICK)` to quit the entire subsystem, which will also close all joysticks correctly.

The engine input destructor is replaced with a `Shutdown` method so we can control when it is called, i.e. before calling `SDL_Quit`, which forcefully quits all subsystems.

`CJoystick::Close` is removed as we don't need to close joysticks manually anymore.
2022-06-18 11:57:57 +02:00
..
client Fix segfault in SDL_JoystickClose on client quit 2022-06-18 11:57:57 +02:00
docs Fix a woopsie in snapshot docs 2021-05-29 11:07:33 +02:00
external Upgrade zlib to 1.2.12 2022-03-30 14:31:35 +02:00
server Use ReadFile to load server maps 2022-06-16 10:19:37 +02:00
shared Add IStorage::ReadFile and ReadFileStr: 2022-06-16 10:19:36 +02:00
antibot.h Forgot to add target here 2021-07-22 00:22:12 +02:00
client.h Use nullptr in generated and editor 2022-06-13 18:28:13 +02:00
config.h Implement "reset" command 2021-12-27 01:13:11 +01:00
console.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
demo.h Added external linkage instead of static const 2022-04-03 01:12:27 +02:00
discord.h Put the Discord stuff into its own file 2021-01-31 10:17:21 +01:00
editor.h Separate editor update and render to fix slow joystick input 2022-06-15 17:37:22 +02:00
engine.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
friends.h Run clang-format 2020-09-26 21:50:15 +02:00
ghost.h Organize engine-shared includes 2022-05-29 20:02:22 +02:00
graphics.h More vector naming format 2022-06-15 19:37:37 +02:00
input.h Fix segfault in SDL_JoystickClose on client quit 2022-06-18 11:57:57 +02:00
kernel.h Use nullptr in generated and editor 2022-06-13 18:28:13 +02:00
keys.h Add joystick support to engine 2022-06-13 20:40:36 +02:00
map.h Run clang-format 2020-09-26 21:50:15 +02:00
message.h Run clang-format 2020-09-26 21:50:15 +02:00
server.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
serverbrowser.h Remove a couple of game/-includes from the engine code 2022-05-13 09:04:39 +02:00
sound.h Multithreaded video rendering 2022-03-20 18:03:33 +01:00
sqlite.h Add sqlite3 to the client 2021-05-14 01:00:41 +02:00
steam.h Allow joining and inviting others via Steam friend list while ingame 2020-09-06 17:08:38 +02:00
storage.h Add IStorage::ReadFile and ReadFileStr: 2022-06-16 10:19:36 +02:00
textrender.h Use nullptr in generated and editor 2022-06-13 18:28:13 +02:00
updater.h Overhauled job system 2017-11-23 15:47:38 +01:00
uuid.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
warning.h Add block list for drivers 2020-11-05 21:07:14 +01:00