Skip to content

Instantly share code, notes, and snippets.

View Angel-Avila's full-sized avatar

Ángel Ávila Angel-Avila

View GitHub Profile
@adituv
adituv / bizhawk-shim.lua
Last active February 20, 2024 03:07
Bizhawk shim for VBA-rr lua scripts
-- VBA/Bizhawk shim, to allow lua scripts written for VBA-rr to run in BizHawk.
-- Copy and paste this script into the start of a VBA-rr script to make it run in
-- BizHawk with no further modifications.
-- Changes to BizHawk's built-in tables persist while the lua console window is open.
-- Make sure we don't copy our already-updated objects.
if type(joypad.get) == "userdata" then
bizJoypad = copytable(joypad)
end