commit a49b424abdb054f9d08b5512cc0e0155f8868d9e
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sat Jan 3 10:47:58 2026 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sat Jan 3 10:47:58 2026 -0700
stub out bbs stat calls
---
source/picoluaapi.cpp | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/source/picoluaapi.cpp b/source/picoluaapi.cpp
index 8b2bca4..5dac462 100644
--- a/source/picoluaapi.cpp
+++ b/source/picoluaapi.cpp
@@ -996,6 +996,13 @@ int stat(lua_State *L) {
case 100:
lua_pushstring(L, _vmForLuaApi->getCartBreadcrumb().c_str());
return 1;
+ //101 and 102 are something to do with the bbs -
+ case 101:
+ lua_pushnil(L);
+ return 1;
+ case 102:
+ lua_pushnumber(L, 0);
+ return 1;
//unknown? used by serial carts
case 108:
lua_pushnumber(L, 32);
@@ -1339,7 +1346,10 @@ int load(lua_State *L) {
param = lua_tolstring(L, 3, nullptr);
}
- _vmForLuaApi->vm_load(filename, breadcrumb, param);
+ bool result = _vmForLuaApi->vm_load(filename, breadcrumb, param);
+ lua_pushboolean(L, result);
+
+ return 1;
}
return 0;