Skip to content

Conversation

@hrydgard
Copy link
Owner

@hrydgard hrydgard commented Oct 3, 2025

This simply makes the plugin system support lua, and adds a whole bunch of functionality to our lua contexts. Note: Hook functionality is still missing so all you can really do with this is binary patches on startup currently, and print to the log.

Unfortunately I've ran into the issue now that you can't safely save/load a complete lua state, it's just not possible to do the way they're designed. But we can probably approximate it well enough by reloading scripts on save state load, and saving/restoring any global variables on top. It will be pretty complicated now and the plugins will need to be aware of some restrictions.

@hrydgard hrydgard added the Scripting Scripting (lua) label Oct 3, 2025
@hrydgard
Copy link
Owner Author

hrydgard commented Oct 4, 2025

Hm, looks like we'll have to build armips (the assembler) for libretro as well, if we want to support lua there....

@hrydgard hrydgard force-pushed the lua-work branch 2 times, most recently from 06610f9 to b836594 Compare October 6, 2025 23:03
@hrydgard
Copy link
Owner Author

hrydgard commented Oct 6, 2025

ugh, an ElfTypes.h include path conflict (we have two of them, one in armips and one for ppsspp).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scripting Scripting (lua)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants