YuriSizuku / OnscripterYuri

An enhancement ONScripter project porting to many platforms, especially web.
GNU General Public License v2.0
310 stars 18 forks source link

Add libretro port #30

Closed iyzsong closed 1 month ago

iyzsong commented 1 month ago

Hello this add a new target for libretro, which will allow play in RetroArch. Software renderer was used instead of OpenGL ES. And SDL libraries and bzip2 are staticlly linked via git submodules.

To build this, do:

git submodule init
git submodule update --recursive --depth=1
mkdir build
cd build
cmake ../src/onsyuri_libretro/ -DCMAKE_BUILD_TYPE=Release
make -j2

On Linux it will build onsyuri_libretro.so, run with:

retroarch -L onsyuri_libretro.so /PATH/TO/GAMEDIR/nscript.dat

GAMEDIR must include default.ttf as the font.

Thanks.

YuriSizuku commented 1 month ago

Thank you for your contribution of this project.