Rinnegatamante / lpp-vita

Lua Player Plus for PSVITA. Documentation on: http://rinnegatamante.github.io/lpp-vita/
GNU General Public License v3.0
179 stars 27 forks source link

Fix for require function #41

Closed ramersonw closed 1 year ago

ramersonw commented 5 years ago

This fixes the crash when calling 'require'. But, to work, vita-luajit must be compiled without vita-libdl support too.

In luajit's source, change line 110 of lj_arch.h from #define LJ_TARGET_DLOPEN (LJ_TARGET_POSIX || LJ_TARGET_PSP2) to #define LJ_TARGET_DLOPEN (LJ_TARGET_POSIX)

with this modification, we'll lose FFI support, but 'require' will work with *.lua files.

Rinnegatamante commented 1 year ago

This now works with replaced luajit+libdl.