kichikuou
5455bce8d6
Rename sdl_input.c to sdl_keytable.h
...
And move xsyskey.pl to tools/.
2020-09-06 13:58:09 +09:00
kichikuou
5e5defb6bc
Android: Input dialog truncates string that exceeds maximum length
2020-09-06 10:35:35 +09:00
kichikuou
05cca544c6
Text input commands should accept half-width characters
...
Although its dialog message says "Half-width characters cannot be used",
System3.9 does not prevent users from entering half-width characters.
2020-09-05 22:40:23 +09:00
kichikuou
38758569bb
Android: Implement input dialogs
2020-09-04 17:03:01 +09:00
kichikuou
e417811a94
emscripten: Implement messagebox and number input dialog
2020-09-04 17:03:01 +09:00
kichikuou
b509be2b64
Remove unused menu_widget_reinit()
2020-09-04 11:34:24 +09:00
kichikuou
fa845a6439
MIDI: Keep track of current music number in music_midi.c
2020-08-30 17:21:03 +09:00
kichikuou
b3cb185a35
Simplify cg_load
...
Before this, cg_load() skipped loading CG or loaded only palettes,
depending on the flags set by the PC command.
After this, it always loads a CG and populates the cache. Functions for
loading only palettes have been removed. Actually this may be good for
performance, because some games use `PC 0:` to prewarm the cache.
2020-08-30 15:39:42 +09:00
kichikuou
87413d54dc
Fix SC command
...
This fixes a bug where SC command did not return 999/999/999/999 when
CD-DA is not available.
2020-08-30 13:55:20 +09:00
kichikuou
440fb93b08
Fix memory leak in sprite_update.c
2020-08-30 12:17:46 +09:00
kichikuou
6d1ef1ba6f
Fix memory leak in cursor_load
2020-08-30 11:20:29 +09:00
kichikuou
dd1f0fd230
Fix memory leak in ags_setWorldSize
...
SetWorldSize() replaces the DIB, so alpha buffer must be freed before
calling it.
2020-08-30 10:33:45 +09:00
kichikuou
15fb122148
Remove agsurface.has_{pixel,alpha} fields
2020-08-30 10:26:55 +09:00
kichikuou
91a6cf7e67
Fix out-of-bounds memory access in font_ttf_get_glyph
...
FT_GlyphSlot.bitmap_left can be negative.
2020-08-30 09:58:09 +09:00
kichikuou
dc8025469a
Fix memory leak in msg_openWindow
2020-08-29 22:36:59 +09:00
kichikuou
0bbace898d
Fix memory leak in save_saveAll
2020-08-29 22:04:34 +09:00
kichikuou
c4e5ef3c36
Fix usage message
2020-08-29 19:10:55 +09:00
kichikuou
e039fb3193
Fix memory leak in qnt_extract
2020-08-29 18:47:21 +09:00
kichikuou
e547c153fc
emscripten: Call sys_getInputInfo() at least once per frame
...
This fixes Graymerca, which checks input only with IG command.
2020-08-29 12:38:01 +09:00
kichikuou
fef74da3dd
emscripten: Enable JPEG
2020-08-26 20:23:56 +09:00
kichikuou
7baab6b616
Android CI: Use the system's default JDK
2020-08-23 14:09:37 +09:00
kichikuou
54b219e435
Android: Update build instructions to use commandline-tools
...
Now it works with JDK 9+.
2020-08-23 13:23:21 +09:00
kichikuou
a20363b901
Android: Upgrade build environment
...
- targetSdkVersion 28
- Android Gradle plugin 4.0.1
- Kotlin 1.3.72
- Gradle 6.1.1
2020-08-23 11:22:05 +09:00
kichikuou
bc9fc924ed
[experimental] Unicode mode
...
This adds "Unicode mode", in which scenarios can be written in any
language. xsys35c 1.2.0 and later can produce Unicode scenarios.
- nact->encoding represents the current scenario encoding. The initial
value is SJIS, and ZU command changes it to UTF8.
- Use conversion macros that switch the behavior by the scenario
encoding. For example, toUTF8() calls sjis2utf() if the scenario
encoding is SJIS, and calls strdup() if it is UTF8.
- Fix various string processing functions to work with UTF8.
win-20200809
2020-08-09 21:24:56 +09:00
kichikuou
d8fbf9a8b1
Cleanup
2020-08-09 13:41:26 +09:00
kichikuou
077e4d32e0
Fix emscripten build
2020-08-08 23:07:53 +09:00
kichikuou
652e4b9111
Simplify ags_drawStringToSurface()
2020-08-08 22:57:22 +09:00
kichikuou
3cecc58607
Narrow dependency on font.h
...
This removes font.h dependency from header files such as ags.h and
nact.h. After this, font.h must be explicitly included in order to use
font functions.
2020-08-08 22:52:47 +09:00
kichikuou
f31742a503
Font functions only handle utf-8 strings
...
Conversion from Shift_JIS is done in ags.c.
2020-08-08 22:03:58 +09:00
kichikuou
e830190537
Add ags_drawStringToSurface()
2020-08-08 21:28:01 +09:00
kichikuou
7d8458c86d
Emscripten: Remove getMemory from EXTRA_EXPORTED_RUNTIME_METHODS
2020-08-08 14:29:44 +09:00
kichikuou
dfc10a7f34
Update emscripten to 1.40.1
2020-08-08 10:35:23 +09:00
kichikuou
a5684cffa4
Switch README.md to English, and add a link to the releases page
2020-08-06 19:28:15 +09:00
kichikuou
cfa9dc3502
Make BGM setup easy
...
This changes the default value of cdrom_device to "playlist.txt" so that
users can prepare BGM simply by putting a file named "playlist.txt" in
the game directory.
Also, if the playlist file is not found but there is a "_inmm.ini" file
in the game directory, load it as a playlist (but unlike the normal
playlist format, the first line corresponds to track 2). This makes some
archived games work without any configuration.
win-20200806
2020-08-06 17:20:27 +09:00
kichikuou
f978c43ee1
Move mmap-related code to mmap.{h,c}
...
And add Windows implementation.
2020-08-06 15:09:51 +09:00
kichikuou
7871bb9328
Fix DEBUG_COMMAND macro
2020-08-06 14:59:33 +09:00
kichikuou
ab32b1792f
Do not display message argument of System 3.9 H/HH/X commands
...
This matches the behavior of System39.exe.
2020-08-02 15:38:12 +09:00
kichikuou
98d0a13a20
Change the underlying type of boolean to C99 _Bool
2020-08-02 14:07:51 +09:00
kichikuou
5456ac4219
Remove unused ERROR constant
2020-08-02 13:46:44 +09:00
kichikuou
f258ae42b1
Windows: Remember last selected game folder in registry
2020-08-02 13:41:34 +09:00
kichikuou
6a459260e4
Fix font filename in xsystem35.nsi
2020-08-02 13:41:34 +09:00
kichikuou
6580b864c0
Windows: Localize game-folder chooser dialog
2020-08-02 13:41:34 +09:00
kichikuou
bfd8e3e55a
Windows: Add app icon
2020-08-02 13:41:34 +09:00
kichikuou
05cacb170f
Windows CI: Generate installer as build artifact
2020-08-01 23:23:51 +09:00
kichikuou
d2c861ad53
Windows: Let the user select a game folder when launched without arguments
2020-08-01 21:43:20 +09:00
kichikuou
8a395a57e4
Windows: Load profile from registry
...
This allows xsystem35 to use the font paths written to the registry by
the installer.
2020-08-01 21:43:20 +09:00
kichikuou
6706348c11
Make DWORD definition not to conflict with windows.h
2020-08-01 21:43:20 +09:00
kichikuou
c66714bab6
Add NSIS script for generating Windows installer
2020-08-01 21:43:15 +09:00
kichikuou
730b15dfca
Refactor debug output macros
2020-07-25 22:01:21 +09:00
kichikuou
ad6c84db4d
Clean up xsys35rc.sample
2020-07-25 17:57:49 +09:00