foxygit / fake-08-xbox360 Log in
commit 7b20bf64fcc8a994ba273e20867b210522e30d22
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Apr 14 18:29:23 2021 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Apr 14 18:29:23 2021 -0600

    stub out serial and stat(108)
---
 source/p8GlobalLuaFunctions.h | 5 +++++
 source/picoluaapi.cpp         | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index d2ebe73..470c4fc 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -84,6 +84,11 @@ function deli(c,i)
     end
 end

+function serial(chan, address, len)
+    --stubbed out
+    --return len
+end
+

 ---------------------------------
 --Coroutines
diff --git a/source/picoluaapi.cpp b/source/picoluaapi.cpp
index 98ad30d..35b6522 100644
--- a/source/picoluaapi.cpp
+++ b/source/picoluaapi.cpp
@@ -814,6 +814,11 @@ int stat(lua_State *L) {
             lua_pushnumber(L, _vmForLuaApi->getSecond());
             return 1;
         break;
+        //unknown? used by serial carts
+        case 108:
+            lua_pushnumber(L, 32);
+            return 1;
+        break;
     }