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`. |
||
---|---|---|
.. | ||
digi_mixer_music.cpp | ||
event.cpp | ||
joy.cpp | ||
key.cpp | ||
mouse.cpp | ||
rbaudio.cpp | ||
timer.cpp | ||
window.cpp |