Fixed psyqo-lua problems
This commit is contained in:
6
Makefile
6
Makefile
@@ -22,7 +22,8 @@ src/bvh.cpp \
|
||||
src/cutscene.cpp \
|
||||
src/uisystem.cpp \
|
||||
src/loadingscreen.cpp \
|
||||
src/memoverlay.cpp
|
||||
src/memoverlay.cpp \
|
||||
src/loadbuffer_patch.cpp
|
||||
|
||||
# LOADER=cdrom → CD-ROM backend (for ISO builds on real hardware)
|
||||
# LOADER=pcdrv → PCdrv backend (default, emulator + SIO1)
|
||||
@@ -58,4 +59,7 @@ LDFLAGS := $(subst psyqo_realloc,lua_oom_realloc,$(LDFLAGS))
|
||||
# NOPARSER=1 → Use precompiled bytecode, strip Lua parser from runtime (~25KB savings)
|
||||
ifeq ($(NOPARSER),1)
|
||||
LIBRARIES := $(subst liblua.a,liblua-noparser.a,$(LIBRARIES))
|
||||
# Wrap luaL_loadbufferx to intercept psyqo-lua's source-text FixedPoint
|
||||
# metatable init and redirect it to pre-compiled bytecode.
|
||||
LDFLAGS += -Wl,--wrap=luaL_loadbufferx
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user