foxygit / fake-08-xbox360 Log in
commit f59d5fad8378ccdf23f9aec4f8e0b7382e2e6cf1
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Sun Mar 28 21:22:31 2021 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Sun Mar 28 21:22:31 2021 -0600

    add mapdraw for legacy carts
---
 source/vm.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/source/vm.cpp b/source/vm.cpp
index 200834c..34d0286 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -201,6 +201,7 @@ bool Vm::loadCart(Cart* cart) {
     lua_register(_luaState, "mget", mget);
     lua_register(_luaState, "mset", mset);
     lua_register(_luaState, "map", map);
+    lua_register(_luaState, "mapdraw", map);

     //stubbed in graphics:
     lua_register(_luaState, "fillp", fillp);