LADX: fix bizhawk 2.9 (#1784)

This commit is contained in:
zig-for
2023-05-03 14:35:14 -07:00
committed by GitHub
parent a60f370224
commit 97fd78ba1b
3 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
print("Loading AP lua connector script")
local lua_major, lua_minor = _VERSION:match("Lua (%d+)%.(%d+)")
lua_major = tonumber(lua_major)
lua_minor = tonumber(lua_minor)
@@ -101,3 +103,7 @@ function checkBizhawkVersion()
end
return true
end
function stripPrefix(s, p)
return (s:sub(0, #p) == p) and s:sub(#p+1) or s
end