dxx-rebirth/common/arch/sdl
Kp c4cc119898 Set music type inside load_mus_file
Return the type for compatibility, but set the music type immediately.
Change callers to return without using a switch to set the music type
based on the returned value.  This allows the callers to exit early on a
successful load.

Remove the `switch` in the caller, since now every path that can set
`current_music_type` will either (a) set it to None because the load
failed or (b) set it to non-None and return before reaching the
`switch`.
2022-03-19 22:55:58 +00:00
..
digi_mixer_music.cpp Set music type inside load_mus_file 2022-03-19 22:55:58 +00:00
event.cpp Move joystick interpretation to happen after the event loop 2022-02-27 14:23:53 +00:00
joy.cpp Explicitly require support for C++11 constructor inheritance 2022-01-09 15:25:42 +00:00
key.cpp SDL2: explicitly ignore unwanted key repeats 2020-10-12 03:28:26 +00:00
mouse.cpp Use enum class for MBTN_* constants 2022-02-27 14:23:53 +00:00
rbaudio.cpp Switch most in-tree http:// links to https:// 2018-09-02 00:57:29 +00:00
timer.cpp Switch most in-tree http:// links to https:// 2018-09-02 00:57:29 +00:00
window.cpp Move window_is_visible,window_set_visible to be window methods 2021-11-01 03:37:18 +00:00