kichikuou
0f6d4e2343
Add Streamer Mode with -censor option
...
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.
2025-11-09 11:47:13 +09:00
kichikuou
f1536a801a
QE/LE: Handle backslashes in filenames
...
Rance 5D uses filename `Save\\Rance5dSystem.asd`. This caused issues:
- On Windows, saving would fail if the `Save` directory did not exist.
- On other platforms, files were created with literal backslashes in
their names.
This change addresses these problems by:
- In commandQE, normalizing backslashes to forward slashes in the path
and ensuring that the target directory exists by calling mkdir_p().
- In commandLE, first attempting to load files with normalized forward
slashes. If that fails, it retries with the original path (containing
backslashes) for compatibility with older saves.
2025-11-06 11:05:23 +09:00
kichikuou
ab372b7873
Unify old and new command implementations
...
Consolidate logic for parsing string arguments by introducing a
parameter to handle different terminators.
2025-11-06 09:39:51 +09:00
kichikuou
2c02f40dc4
Move uppercase commands from cmd2F.c to cmd<first_letter>.c
2025-11-06 09:39:46 +09:00
kichikuou
361ca89016
Windows: #undef min / max in portab.h
2025-06-20 08:11:35 +09:00
kichikuou
c7c0f69ec4
Split sdl_core.h to event.h and editor.h
...
And rename sdl_event.c to event.c, sdl_input.c to editor.c.
2025-06-11 10:12:25 +09:00
kichikuou
f38a3eda5c
Merge sdl_cursor.c to cursor.c
2025-06-11 10:12:22 +09:00
kichikuou
dc17b78365
Move miscellaneous low-level functions to system.[ch]
2025-06-11 09:23:44 +09:00
kichikuou
b9f68eedd3
Move joystick initialization code to sdl_event.c
2025-06-11 09:23:44 +09:00
kichikuou
adf362ea57
Rename sdl_effect_* to effect_*
2025-06-11 09:23:44 +09:00
kichikuou
b5bf439b8e
Remove graphics.h
2025-06-11 09:23:42 +09:00
kichikuou
9a01d28075
Move gfx_* functions from sdl_core.h to gfx.h
2025-06-11 09:22:36 +09:00
kichikuou
945dbd7722
Rename graphics functions from sdl_* to gfx_*
...
And rename sdl_{video,draw,image}.c to gfx_{video,draw,image}.c.
2025-06-10 15:00:27 +09:00
kichikuou
5a81ac6fc8
Windows: Add cancel button to text/number input dialog
2025-05-30 16:06:29 +09:00
kichikuou
d7bac22059
Windows: Implement number input dialog (NI command)
...
Fixes #68 .
2025-05-30 16:06:26 +09:00
kichikuou
8d4424061d
Switch JPEG decoder to NanoJPEG and disable fancy upsampling
...
Graymerca uses JPEG images for map tiles, which suffers from color
bleeding due to chroma upsampling in the JPEG decoder.
Since stb_image cannot disable the bilinear upsampling filter, this
switches the JPEG decoder to NanoJPEG.
Fixes #67 .
2025-05-29 08:39:59 +09:00
kichikuou
65b6da3f2a
emscripten: Export HEAPU8 and HEAP16
...
Used in Kichikou on Web shell.
2025-04-21 10:12:43 +09:00
kichikuou
3f495b72c1
Fix message waiting in Rance 2 intro
...
By recreating a bug of the ZW command in system35.exe.
2025-04-21 09:43:01 +09:00
kichikuou
90670477c6
Fix uncancellable message wait mode (ZW 256-511)
2025-04-21 09:42:58 +09:00
kichikuou
566ebb503f
Fix PS and PP commands
...
This was a regression introduced by commit c1018d9 .
Fixes #65 .
2025-04-21 08:22:39 +09:00
kichikuou
c1018d9e0f
Replace Color struct with SDL_Color
2025-03-09 13:16:02 +09:00
kichikuou
cb8a48cdec
Introduce sdl_palette
...
It replaces the sdl_col array and is set as the palette of main_surface.
2025-03-09 10:42:32 +09:00
kichikuou
6bf6a5c86a
Delay mouse button state changes caused by touch events
...
This fixes #64 where a touch operation is recognized as a click in the
wrong position in Mamatoto.
This is the same problem that occured in xsystem4 and was addressed in
https://github.com/nunuhara/xsystem4/commit/5e80c9658787b118920f850ae4cbc883e6fceb1e ,
and the fix is also the same.
2025-03-08 08:33:24 +09:00
kichikuou
fa74a4744c
Fix ags_scaledCopyArea() for 8-bit DIB
...
This fixes special move animation in Mamatoto.
2025-03-07 11:21:14 +09:00
kichikuou
fb68b03a4f
debugger: Update screen before entering REPL
2025-03-07 09:47:46 +09:00
kichikuou
75228cc4c8
Android: Back button to exit the game
...
Fixes #50 .
2025-03-06 08:00:50 +09:00
kichikuou
8c13361164
emscripten: Use System3.9 compatible save format by default
2025-02-25 21:45:11 +09:00
kichikuou
d05dc83e67
emscripten: Fix unused-function warning
2025-02-22 14:37:15 +09:00
kichikuou
c9f21c4547
sactamask: Use sdl_effect framework
2025-02-21 09:14:05 +09:00
kichikuou
f053f25397
Make webp_extract() return SDL_Surface instead of cgdata
...
This eliminates unnecessary RGBA -> RGB + alpha plane -> RGBA
conversion.
2025-02-21 09:14:02 +09:00
kichikuou
f673708a3f
Remove depth field from surface_t
2025-02-21 09:12:07 +09:00
kichikuou
aab63adac2
Refactor image drawing functions
2025-02-21 09:10:55 +09:00
kichikuou
6f09a999d2
Gpx, ShGraph: Remove unused 16bpp surface support
2025-02-19 15:59:39 +09:00
kichikuou
a8f46453d8
Remove redundant fields from surface_t
2025-02-19 14:03:01 +09:00
kichikuou
baa4a3158f
ags: Add ALPHA_AT macro
2025-02-19 13:39:20 +09:00
kichikuou
8328b93227
Rename agsurface_t to surface_t
2025-02-19 13:24:56 +09:00
kichikuou
51954c6bd4
Move load_cg_to_sdlsurface() to src/cg.c
...
And rename it to cg_load_as_sdlsurface().
2025-02-19 12:30:13 +09:00
kichikuou
e2c75fbd9d
Rename sdl_dib to main_surface and move it to ags.h
2025-02-19 12:15:06 +09:00
kichikuou
9c6423bf99
drawtext: Remove 8-bit text rendering function
2025-02-19 09:59:22 +09:00
kichikuou
dec1649882
SACT: Make sprites have SDL_Surface instead of surface_t
2025-02-18 21:58:06 +09:00
kichikuou
6b9c3475a0
Simplify sdl_scaledCopyArea()
2025-02-17 08:16:09 +09:00
kichikuou
5bae0c16c5
Simplify gr_ functions using SDL surface operations
2025-02-16 21:03:59 +09:00
kichikuou
d551cdbb70
Refactor text rendering functions in modules/
2025-02-16 13:13:16 +09:00
kichikuou
e711d5786e
Make agsurface_t backed by SDL_Surface
...
This adds `sdl_surface` field to agsurface_t. `agsurface->pixel` is now
set to `agsurfae->sdl_surface->pixels`.
Note that the `sdl_surface` field does not have alpha; transparent
surfaces have a separate alpha plane in `agsurface->alpha`.
2025-02-16 13:13:13 +09:00
kichikuou
64abb3c582
screenshot: Save only view area, not entire sdl_dib
2025-02-11 13:46:20 +09:00
kichikuou
bf26f1b0c0
Refactor clipping functions
2025-02-11 12:36:21 +09:00
kichikuou
f4f1a99372
Fix mathClip command
2025-02-11 12:36:18 +09:00
kichikuou
53f0a5ce2a
sdl_effect: Fix palette issue when texture is created from sdl_dib
2025-02-11 10:30:25 +09:00
kichikuou
c621a5dddb
Remove intermediate screen buffer
...
Pixels are now copied directly from sdl_dib to sdl_texture.
2025-02-11 08:37:47 +09:00
kichikuou
42faf38a47
emscripten: Replace sdl_getDisplaySurface with save_screenshot function
2025-02-10 07:47:48 +09:00