Commit graph

9 commits

Author SHA1 Message Date
刘皓
510f1b0211
Move sandbox files to binding-sandbox directory 2025-01-16 22:16:14 -05:00
刘皓
2a204178fe
Implement stackful coroutine-based executor for libretro builds
This executor has the advantage of being able to work correctly when
there are Ruby stack frames underneath C/C++ stack frames in the stack.

Still need to implement handling Ruby fibers.
2025-01-08 19:39:48 -05:00
刘皓
c4d5d8af97
Turn all sandbox bindings into coroutines
We can't have them as normal functions because reentrant calls into the
Ruby API don't work if you do that, i.e. calling into the Ruby API and
that calls mkxp-z's bindings and that calls back into the Ruby API.
2025-01-07 00:02:09 -05:00
刘皓
3e79e8b390
Add binding generator for Ruby in libretro builds 2025-01-04 18:13:44 -05:00
刘皓
d099f485fd
Change Ruby command-line arguments in libretro builds
The old arguments were invoking undefined behaviour that may or may not
cause crashes when initializing Ruby depending on which path on the
build machine Ruby was built on!
2025-01-02 11:51:55 -05:00
刘皓
a32646ff72
Define WABT_BIG_ENDIAN=1 on big-endian hosts
WebAssembly is little-endian regardless of what machine you run it on,
so the WebAssembly implementation needs to know if the machine is
big-endian or little-endian to function properly.
2025-01-01 17:36:52 -05:00
刘皓
dbe6ff891e
Implement mounting game zip files
Right now I've implemented opening game files that are in zip format and
added a filesystem implementation to allow reading the game files. I've
also added a `Dir.glob` call core.cpp to print the contents of the root
directory of the game zip file to the log as a test.
2024-12-31 00:25:00 -05:00
刘皓
d5de2c0c25
Remove unnecessary args_get implementation 2024-12-30 13:58:38 -05:00
刘皓
27df4f018c
Upload base libretro core files 2024-12-29 23:35:35 -05:00