Centralize the differences between SDL2 and SDL3 behind compatibility
interfaces and select the appropriate implementations with the
SYSTEM3_SDL_VERSION CMake option. The default is SDL2 except on Android,
which supports only SDL3.
Dri::load_mda() referenced 26 of the built-in MDAs without the ".MDA"
suffix, so open_resource() never found them.
Also add the missing cases for Rance 4 and Gakuen KING.
Gakuen KING's original implementation returns 1 for num=1; it returns 0
only when num is 0.
The line dates back to the initial upstream import and had never been
changed. nact_sys1.cpp and nact_sys2.cpp still have the same expression
but they are left alone.
This is an enhancement over the original. The original draws each map
redraw at its new position at once, then waits for the movement
interval. Compose the view into an offscreen screen and slide it into
place over that same interval, interpolating the sprite alongside it,
for smooth scrolling. Redraws that move more than one cell still snap.
The original leaves the selection feedback to the mouse pointer,
which may be missing or impossible to move in system3-sdl2. Draw the
mouse cursor image extracted from GAKUEN.COM on the grid while the
keyboard drives the selection.
- MP3/OGG files are now decoded with dr_mp3 and stb_vorbis via the new
MakoMusic backend.
- Merge src/win/mako.cpp into src/generic/mako.cpp: Windows now uses the
same SDL audio path.
- A single SDL2 audio device mixes FM, BGM and PCM in its callback with
SDL_MixAudioFormat.
- PCM plays through SDL_AudioStream.
- dr_mp3 and stb_vorbis are vendored under deps/ and included from
mako_music.cpp. Warnings for that translation unit are silenced.
This adds minimal command support to enable Gakuen King's music mode:
- P: Set text color
- I: Allow user to select a grid item using mouse/keyboard input
- Y25: Switch text window
- Y118: Set text X coordinate
- Y119: Set text Y coordinate
The meanings of these commands were investigated from the implementation
of Gakuen King's system3.5 port.
This introduces "Streamer Mode" to mosaic specified NSFW images, making
the game suitable for streaming or public viewing. This feature is
enabled via the '-censor <file>' command-line option, which takes a file
containing a list of image numbers to be filtered.