From 895032027e828d9285bc71f060f8d73e74e9d218 Mon Sep 17 00:00:00 2001 From: Matt Stanton Date: Fri, 8 Apr 2022 21:44:55 -0700 Subject: [PATCH 1/2] Add pack and unpack to the list of Pico-8 builtins. --- pico8/lua/lua.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pico8/lua/lua.py b/pico8/lua/lua.py index cd10be5..528ab15 100644 --- a/pico8/lua/lua.py +++ b/pico8/lua/lua.py @@ -79,6 +79,7 @@ b'setmetatable', b'getmetatable', b'rawget', b'rawset', b'rawequal', b'rawlen', b'cocreate', b'coresume', b'costatus', b'yield', + b'pack', b'unpack' # Mentioned in manual but not fully documented b'assert', b'sgn', From 9abe4d5f851d54bf103a2cb6517cf9b11a184483 Mon Sep 17 00:00:00 2001 From: Matt Stanton Date: Fri, 8 Apr 2022 22:09:56 -0700 Subject: [PATCH 2/2] Add ipairs --- pico8/lua/lua.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico8/lua/lua.py b/pico8/lua/lua.py index 528ab15..33d867a 100644 --- a/pico8/lua/lua.py +++ b/pico8/lua/lua.py @@ -43,7 +43,7 @@ b'sspr', b'fillp', # Tables - b'add', b'del', b'deli', b'count', b'all', b'foreach', b'pairs', + b'add', b'del', b'deli', b'count', b'all', b'foreach', b'ipairs', b'pairs', # Input b'btn', b'btnp',