Commit graph

14 commits

Author SHA1 Message Date
刘皓
510f1b0211
Move sandbox files to binding-sandbox directory 2025-01-16 22:16:14 -05:00
刘皓
1439b3181d
Use C compiler to preprocess Ruby headers before passing to Ctags
Ctags by itself misses a few functions defined in the Ruby API.
2025-01-05 16:42:48 -05:00
刘皓
3e79e8b390
Add binding generator for Ruby in libretro builds 2025-01-04 18:13:44 -05:00
刘皓
5cf4e8716b
Improve path normalization in wasi.cpp 2025-01-03 17:29:58 -05:00
刘皓
886fa6b96f
Remove malloc() and free() as much as possible in wasi.cpp 2025-01-03 14:06:35 -05:00
刘皓
d18704d76f
Fix memory leaks in wasi.cpp 2025-01-03 12:22:29 -05:00
刘皓
075a997d8c
Fix undefined behaviour in w2c_wasi__snapshot__preview1 constructor 2025-01-03 00:57:20 -05:00
刘皓
ca6fb125c1
Make sure exported libretro/WASI functions match the required signatures
Apparently `environ` is some kind of reserved word in MSYS2's build
environment, which caused hard-to-understand linking errors on Windows
due to one of the functions in wasi.cpp having an argument named
`environ`. I've changed the name of the offending argument to `env`.

I've also added `extern "C"` to all exported functions to make sure
something like this doesn't happen again - the compiler should now
refuse to compile the code if there are function signature mismatches in
exported functions.
2025-01-01 17:17:52 -05:00
刘皓
5fdb91e830
Readd WASI fd_renumber implementation 2024-12-31 00:28:47 -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
刘皓
69fdcc0f20
Implement a generic WASI filesystem for ZIP files 2024-12-30 19:01:57 -05:00
刘皓
d5de2c0c25
Remove unnecessary args_get implementation 2024-12-30 13:58:38 -05:00
刘皓
4e15b7b2d0
Fix WASI fd_readdir implementation not iterating over subdirectories 2024-12-30 13:49:32 -05:00
刘皓
27df4f018c
Upload base libretro core files 2024-12-29 23:35:35 -05:00