kichikuou
b5bf439b8e
Remove graphics.h
2025-06-11 09:23:42 +09:00
kichikuou
d14b42c146
Replace boolean/TRUE/FALSE with bool/true/false
2025-02-02 10:02:08 +09:00
kichikuou
78dc226d13
Add scheduler.c
...
It consolidates VM throttling logic that was scattered in various
places.
2025-01-07 15:52:48 +09:00
kichikuou
20914970c9
Fix text rendering issue in Rance 3 OP
...
This fixes https://github.com/kichikuou/xsystem35-sdl2/issues/54 .
2024-05-22 09:13:09 +09:00
kichikuou
eace5d1dbd
Refactor game-specific hacks, add -game option
...
It's now possible to enable certain game-specific hacks by using the
`-game` command line option or the `game` property in the .xsys35rc
file.
2023-02-11 15:27:38 +09:00
kichikuou
e8357c4e6f
Add a hack to improve map navigation of Rance4 v2
2023-01-28 09:53:41 +09:00
kichikuou
d508676c70
Refactoring: Introduce getCaliArray()
...
This replaces global preVar{No,Page,Index} variables.
2022-08-27 16:11:36 +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
b15690d9b7
Windows: Add "Restart" menu command
...
It resets all VM states and restart the game.
2022-06-26 17:25:39 +09:00
kichikuou
63c456329f
Remove (unused) MMX support
2022-02-05 22:08:26 +09:00
kichikuou
45612feb79
Move some fields from nact to ags
2022-02-05 15:41:52 +09:00
kichikuou
6ef699e87d
Clean up scenario.h dependencies
...
- nact.h and xsystem35.h no longer include scenario.h
- Removed `sys_*` aliases in nact.h
- sys_getString() and sys_getConstString() are moved to
scenario.c as sl_getString() and sl_getConstString()
- DEBUG_COMMAND macros are now defined in scenario.h
2021-07-31 15:18:02 +09:00
kichikuou
80bd68214b
Debugger: Allow interrupts inside sleep functions
...
This makes it possible to enter a REPL in the middle of command
execution (for example, while waiting for input in the A command).
2021-07-25 21:26:05 +09:00
kichikuou
2e2fbbaa1b
Refactor main loop
2021-07-17 22:12:16 +09:00
kichikuou
9878f5ca74
Support message skip in System3.9 games without MsgSkip.DLL
2020-12-29 11:27:14 +09:00
kichikuou
f0bd336da1
Implement MsgSkip module
...
The format of savefile (msgskip.asd) is compatible with AliceSoft's
MsgSkip.dll; a 4-byte size field followed by a bitmap indexed by message
ID.
2020-12-22 16:35:37 +09:00
kichikuou
d531fa3994
Refactor fullscreen code
2020-12-12 16:21:10 +09:00
kichikuou
79c9bfc85a
Drop ft2 font device
...
This makes sdlttf the only font device, and allows code simplification.
2020-10-03 14:54:48 +09:00
kichikuou
dbac18c260
Globally replace "pallet" with "palette"
2020-09-19 22:25:10 +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.
2020-08-09 21:24:56 +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
350d8bb367
Remove unused sys_getConvString()
2020-07-24 13:21:48 +09:00
kichikuou
50b3812364
Convert gametitle.h to utf-8
2020-07-23 22:50:43 +09:00
kichikuou
c03b6cf6b5
Embed GameResource in NACTINFO
2020-07-12 14:17:31 +09:00
kichikuou
1a3b779ace
Use const strings for file names
2020-07-12 13:41:57 +09:00
kichikuou
1cf197513c
Use const strings in message related functions
2020-06-20 10:53:38 +09:00
kichikuou
7a27bcaafd
Remove unused nact.tmpdir
2019-10-12 22:57:18 +09:00
kichikuou
447632a4c3
Simplify logic around message wait cancellation
2019-07-21 10:18:09 +09:00
kichikuou
4b11578a80
Simplify the main loop
2018-02-04 23:42:58 +09:00
kichikuou
24c65c1e88
New mechanism for mainloop throttling
2018-02-04 23:42:43 +09:00
kichikuou
3cc43aec65
Do not use emscripten_set_main_loop
...
It doesn't work well with Emterpreter.
2018-02-04 11:12:14 +09:00
kichikuou
38ea296f44
Stop mainloop on exit
2017-05-04 20:59:42 +09:00
kichikuou
989b0799c7
Use requestAnimationFrame driven mainloop
2017-03-05 19:28:39 +09:00
kichikuou
f1b0b399fa
Convert EUC to utf-8
2017-02-11 19:03:05 +09:00
kichikuou
e607c9c2ee
Import xsystem35-1.7.3-pre5
2014-04-26 18:40:24 +09:00