kichikuou
86470e543a
Rework string variables
...
- strVar is now allocated as a vector of indefinite length buffers
rather than a single contiguous buffer.
- Strings can be any length, but truncated to (strvar_len * 2) bytes
when saved to a file, for backward compatibility.
- Now string commands treat 1-byte characters in the same way as System
3.9. This potentially fixes bugs in English translated games.
2020-06-20 22:29:22 +09:00
kichikuou
a23ce19433
Add tests for string variables (M commands)
...
xsystem35 does not pass yet.
2020-06-20 13:00:32 +09:00
kichikuou
1cf197513c
Use const strings in message related functions
2020-06-20 10:53:38 +09:00
kichikuou
64c3c28336
CI: Run SDL2 and X11 builds on Linux
2020-06-20 10:52:35 +09:00
kichikuou
7309ed012f
Make DspDeviceSync no-op in SDL graphics
2020-06-18 21:49:51 +09:00
kichikuou
515a92544b
getCaliValue: Recover from out-of-bounds index access
...
Before this, array access caused stack underflow if the index was out of
range. After this, such index access will be evaluated to zero.
2020-06-14 22:43:17 +09:00
kichikuou
725b0ee6ab
Prevent buffer overrun by DF command
2020-06-14 22:09:14 +09:00
kichikuou
e17b447e73
Cleanup variable lookup code
...
No behavior changes.
2020-06-14 21:54:11 +09:00
kichikuou
6dbd31cdbc
Add tests for array access
2020-06-14 21:48:52 +09:00
kichikuou
a217df39b1
Fix compiler warnings on Windows
...
On Windows, jpeglib.h includes windows.h which defines several macros
that conflict with ours.
2020-06-14 14:23:40 +09:00
kichikuou
80266d6454
Support JPEG image format
...
JPEG images are not used in AliceSoft games, but supported since System3.6
version 3.23 and used in some third-party games (e.g. Graymerca).
2020-06-14 14:16:19 +09:00
kichikuou
2e17188f2b
Fix DI command and add tests
2020-06-13 15:46:45 +09:00
kichikuou
37f4d847e5
Fix Windows build
2020-06-07 21:29:53 +09:00
kichikuou
43c6688ce7
CI updates
...
- Add Windows build
- Run Debug and Release builds on Linux
- Run CI against pull requests
2020-06-07 15:16:39 +09:00
kichikuou
09e89e794d
Android: Version 0.2.1
android-0.2.1
2020-06-07 14:31:31 +09:00
kichikuou
3fd7a58544
Android: Use filtered scaling
...
This improves text readability, especially for the Mincho font.
2020-06-07 12:55:16 +09:00
kichikuou
f0ccdcf40a
Android: Use arhive filename as alternate launcher item name
...
The title.txt file is written when the MT command is used, however some
games (Daiakuji, AmbivalenZ, Ikenai Katsumi sensei) does not use the MT
command. As a result, these titles did not appear in the launcher.
This makes the launcher use the name of the ZIP archive when the game
was installed as the alternate item name if the MT command was not used.
2020-06-07 12:23:19 +09:00
kichikuou
1a6b7b33b9
Android: Compile SDL_mixer with ogg support
...
This enables voice playback in Escalayer.
2020-06-06 23:00:39 +09:00
kichikuou
7240971beb
Fix SACT.MessageIsEmpty
...
This fixes a bug where message wasn't flushed before changing text
attributes.
2020-06-06 18:27:20 +09:00
kichikuou
250fbd30a0
Android: Version 0.2.0
android-0.2.0
2020-06-06 12:50:42 +09:00
kichikuou
d3579186c6
Android: Populate BGM, WAI, BGI, Init, and SACT01 lines in xsystem35.gr
2020-06-06 12:30:14 +09:00
kichikuou
54dcd8c5fc
Android: Compile SDL2_mixer with -DMUSIC_WAV
...
This is necessary to play BGM from ALD.
2020-06-06 12:22:35 +09:00
kichikuou
5c81929461
Android: Enable modules
2020-06-06 09:19:30 +09:00
kichikuou
dbc15ca3b4
Re-enable NIGHTDLL module
...
To avoid symbol conflicts, this adds "nt_" prefix to sprite, sactcg, and
sactstring functions.
2020-06-04 22:50:46 +09:00
kichikuou
9a1f1c77a6
Static link DLL modules
...
We only support a fixed set of modules, so dynamic linking isn't really
necessary. This paves the way for running System3.9 games on more
platforms.
NIGHTDLL is temporarily disabled, because many symbols conflict with the
SACT module.
2020-06-04 19:56:05 +09:00
kichikuou
0fe5cb60a3
SACT: Add WaitVsync() in animation loops
...
So that sprite updates are reflected on the screen.
2020-05-31 09:58:18 +09:00
kichikuou
3e2c226866
Set default fonts load path to /fonts/
2020-05-30 12:15:41 +09:00
kichikuou
0351f4cbcd
Do not use tab characters in CMakeLists.txt
2020-05-30 09:33:01 +09:00
kichikuou
f1eed8f2af
Convert music.c and music_private.h to UTF-8
...
These files were removed at the time of the batch conversion to UTF-8,
and then re-added in EUC-JP encoding.
2020-05-29 23:15:47 +09:00
kichikuou
9020e5ab1d
Remove .dir-locals.el and add .editorconfig
2020-05-29 23:15:17 +09:00
kichikuou
697c15854a
Update emscripten to 1.39.16
2020-05-29 22:24:10 +09:00
kichikuou
70a03ff02f
s2utbl.h: Map [82 f2] to U+3094 (HIRAGANA LETTER VU)
...
This character is used in Prostudent Good. (Although MTLc3m.ttf does not
have a glyph for it...)
This also makes the table const.
2020-05-10 22:26:04 +09:00
kichikuou
d50e7ac150
CI: Run 'apt update'
2020-05-06 15:39:24 +09:00
kichikuou
ea5776108a
Fix voice playback in Escalayer
...
- Make sure muspcm_getpos() returns non-zero while playing
- Implement mus_wav_fadeout_start()
- Fix a bug of ssnd_waitkey()
2020-05-06 15:11:00 +09:00
kichikuou
8d72775daa
Modules: Make debug messages less verbose
2020-05-04 23:02:05 +09:00
kichikuou
73216073af
Android: Update SDL2 to 2.0.12
2020-03-13 16:22:44 +09:00
kichikuou
2d237079db
Android: Bump version to 0.1.1
android-0.1.1
2020-02-24 14:13:27 +09:00
kichikuou
dbb396ae7c
Android: Skip zip entries with UTFDataFormatException
...
This allows installation from some ZIPs distributed by AliceSoft
archives, in Android < 7.0.
Some other ZIPs have game files with SJIS names, so change the error
message depending on whether there's a decode error.
2020-02-24 14:06:45 +09:00
kichikuou
638e96f894
Add GitHub workflows
2020-02-23 23:04:38 +09:00
kichikuou
174f1ac359
Android: Play MIDI via temporary file
...
MediaPlayer in old versions of Android does not accept data: URL.
2020-02-16 11:35:01 +09:00
kichikuou
af49f40d0b
Android: Sort game list by date of title.txt
...
The title played last comes first.
2020-02-11 09:49:01 +09:00
kichikuou
11442f1574
Android: Do not create SJIS-encoded ZIP
2020-02-11 09:43:49 +09:00
kichikuou
acd4dc239b
Android: Fix loop parameter handling for CD-DA/MIDI
...
The semantics of `loop` parameter of start() is very confusing.
Added comments in cdrom.h/midi.h to clarify the meaning.
2020-02-09 19:22:47 +09:00
kichikuou
70c6480181
Use StringBuilder
2020-02-09 14:33:25 +09:00
kichikuou
ea747ffcc9
Android: Add Japanese strings
2020-02-08 21:01:49 +09:00
kichikuou
457d6ae992
Android: Update README
android-0.1.0
2020-02-02 12:44:43 +09:00
kichikuou
f16f768a69
Android: Use {Push,Pop}LocalFrame to track local references
2020-02-02 11:32:38 +09:00
kichikuou
1b4f44384e
Update build.gradle
...
- Version 0.1.0
- Do not compress .otf font
- Fix warnings
2020-02-02 10:40:34 +09:00
kichikuou
6854d9bea2
Android: Export / import save files
...
Now save files can be exported to ZIP / imported from ZIP by the
option menu of the launcher activity.
2020-02-01 18:52:23 +09:00
kichikuou
b7bbbaee61
Android: Update game list on setTitle()
...
This fixes a bug where newly installed game does not appear in the game
list after quitting the first game run.
2020-02-01 11:06:02 +09:00