kichikuou
652d284628
Debugger: Check out-of-bounds array access
...
This prevents the debugger from SEGVing when trying to access a
variable.
2022-07-30 18:14:35 +09:00
kichikuou
d2661e97f1
sdl_effect: Implement EFFECT_CIRCLE_WIPE_{IN,OUT}
2022-07-23 10:57:59 +09:00
kichikuou
0e9afe7c0a
Implement grDrawFillCircle
2022-07-23 09:18:58 +09:00
kichikuou
078525e2c2
Reduce console message spam
2022-07-16 21:15:55 +09:00
kichikuou
d4a4022894
Enable ARM Neon support in stb_image
2022-07-16 17:46:26 +09:00
kichikuou
dc89c92139
Switch JPEG decoder to stb_image
...
To enable JPEG support on Android without complicating CMake files.
2022-07-16 17:16:44 +09:00
kichikuou
4f351fc767
Improve warning messages
2022-07-16 16:00:24 +09:00
kichikuou
4a20d74f1a
Do not call sdl_getEvent in sdl_getWheelInfo
...
This fixes performance regression in Graymerca.
2022-07-02 15:30:18 +09:00
kichikuou
5c7e92391c
Fix SEGV in cdrom.android.c
2022-07-02 13:47:59 +09:00
kichikuou
fe294bd34b
Remove nact->is_message_locked
...
Now sysWinMsgLock and sysWinMsgUnlock are no-op.
2022-07-02 11:59:18 +09:00
kichikuou
f9b5fec03d
Implement mouse wheel input
...
This implements iptGetWheelCount and iptClearWheelCount commands, and
wheel events for SACT backlog.
2022-07-02 10:55:40 +09:00
kichikuou
d63e3503e7
Fix SR0 command in System 3.6 and later
...
The behavior of the SR0 command has been changed since System3.6 (?) to
return the track number (2-based) instead of the music number (1-based).
Note that this change is orthogonal to the SR command's format change;
the Japanese unofficial patch expects the new behavior but still uses
the old format (SR,cali,var).
This fixes https://github.com/kichikuou/xsystem35-sdl2/issues/32 .
2022-06-29 18:35:22 +09:00
kichikuou
3dd38959a3
Emscripten: Expose sys_restart() function
...
Also ZZ0 now restarts the game instead of exiting.
2022-06-26 17:25:43 +09:00
kichikuou
f56ec88cda
Make sure nact->is_quit breaks event loops
2022-06-26 17:25:43 +09:00
kichikuou
9706f516f9
Add reset functions for DLL modules
2022-06-26 17:25:43 +09:00
kichikuou
b15690d9b7
Windows: Add "Restart" menu command
...
It resets all VM states and restart the game.
2022-06-26 17:25:39 +09:00
kichikuou
26db7f46f5
Refactoring: Simplify music_midi.c
2022-06-26 16:30:52 +09:00
kichikuou
1cf0dbc7e2
Refactoring: Simplify music_cdrom.c
2022-06-26 16:30:52 +09:00
kichikuou
3f36eeee4c
Refactoring: Remove static variables in cmdb.c
2022-06-26 16:30:52 +09:00
kichikuou
ff62533faf
Add reset functions for audio subsystems
2022-06-26 16:30:48 +09:00
kichikuou
f60b21bc19
Implement grEffectMoveView command
...
It is not used in any AliceSoft games, but used in a third-party game.
2022-06-22 21:37:50 +09:00
kichikuou
8fac291e84
Fix MF command
...
It should return the number of characters from the start index, not from
the beginning of the string.
2022-06-18 22:05:45 +09:00
kichikuou
6184e93965
Refactoring: Explicitly pass color-key / blending params to ags_drawCg
2022-04-02 22:13:25 +09:00
kichikuou
3377441caf
Simplify CG drawing functions
...
This removes extra buffer copy in some cases.
2022-04-02 22:13:25 +09:00
kichikuou
d243358b48
Use SDL_GetSurfaceColorMod to display CG with custom brightness
2022-04-02 22:13:25 +09:00
kichikuou
9e82445ace
Refactoring: Add depth field to struct cgdata
2022-04-02 22:13:25 +09:00
kichikuou
a6109b6210
Do not convert to 16bpp when decoding JPEG
2022-04-02 22:13:25 +09:00
kichikuou
901a3bb28c
Revamp NightDemonDemo
...
- Fix off-by-one bug in demo number
- Use the jpeg extraction function in src/
- Improve alk archive interface
2022-04-02 22:12:16 +09:00
kichikuou
f1b80d7086
Improve SACT version detection
...
Using game title (set by the MT command) is fragile in translations.
After this, SACT version is determined from the information in the HEL0
section of System39.ain.
2022-03-31 20:54:43 +09:00
kichikuou
f1fb50841c
Debugger: Allow setting multiple breakpoints at a single address
...
This prevents the internal breakpoint from conflicting with regular
breakpoints.
2022-03-19 10:22:55 +09:00
kichikuou
f97259bc30
pcm.sdlmixer.c: Directly map PCM slots to SDL_mixer channels
2022-03-12 14:17:14 +09:00
kichikuou
3eccaa6165
Fix integer overflow in muspcm_{getpos,getwavelen}
2022-03-12 11:09:59 +09:00
kichikuou
76db37756b
Rename -devvideo option to -renderer
...
And use SDL_HINT_RENDER_DRIVER under the hood.
2022-02-15 17:57:18 +09:00
kichikuou
4c022cf505
Add -devvideo option which specifies SDL rendering driver name
2022-02-15 14:55:18 +09:00
kichikuou
1c3dccb349
sdl_effect: Implement NACT_EFFECT_WIPE_*
2022-02-06 12:26:50 +09:00
kichikuou
63c456329f
Remove (unused) MMX support
2022-02-05 22:08:26 +09:00
kichikuou
141b754340
Remove view_x and view_y fields from sdl_private_data
2022-02-05 17:27:39 +09:00
kichikuou
45612feb79
Move some fields from nact to ags
2022-02-05 15:41:52 +09:00
kichikuou
605de284e9
sdl_effect: PF (fade in/out) and PW (white in/out) commands
...
In 256-color games, it uses alpha-blending instead of palette animation.
2022-02-05 14:49:00 +09:00
kichikuou
0b71a84bb0
Flush pending display changes before applying non-fullscreen effect
2022-02-05 09:58:13 +09:00
kichikuou
933cf5b6a3
Remove old ags_fader()
...
And rename ags_fade2() to ags_runEffect().
2022-01-31 21:44:29 +09:00
kichikuou
c15e7233b4
sdl_effect: Implement CE 43 (NACT_EFFECT_MAGNIFY)
2022-01-31 17:13:22 +09:00
kichikuou
bad6b90e23
sdl_effect: Implement CE 39 to 42
2022-01-31 11:44:25 +09:00
kichikuou
83989f1a0e
CE command: Fix sdl_effect parameters when WV origin is not (0,0)
2022-01-30 15:31:20 +09:00
kichikuou
d1d943d2a5
Remove old code path for SACT.DrawEffect
...
Now it always uses sdl_effect.
2022-01-30 11:32:33 +09:00
kichikuou
6c59122c59
sdl_effect: Implement EFFECT_POLYGON_ROTATE_*
...
It needs perspective-correct interpolation, so we cannot simply use
SDL_RenderGeometry.
2022-01-30 11:32:21 +09:00
kichikuou
a6cbf243c7
Android: Do not use accelerometer as a joystick
2022-01-29 14:15:33 +09:00
kichikuou
a89ed4ba29
sdl_effect: Refactor EFFECT_BLIND_* and EFFECT_CROSSFADE_*
2022-01-29 11:47:33 +09:00
kichikuou
135cd6b8c4
sdl_effect: Fix flicker when target rect is not the entire screen
2022-01-29 09:33:49 +09:00
kichikuou
b6a69deab7
sdl_effect: Implement EFFECT_ZOOM_BLEND_BLUR
2022-01-23 22:20:18 +09:00