foxygit / fake-08-xbox360 Log in
commit 3ce588d379052b432e5d1a70422424f4b02d019f
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Sun Nov 15 15:48:47 2020 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Sun Nov 15 15:48:47 2020 -0700

    prioritize update60 to fix some carts
---
 source/vm.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/vm.cpp b/source/vm.cpp
index 410981d..e2ae4cd 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -249,17 +249,17 @@ bool Vm::loadCart(Cart* cart) {
     lua_pop(_luaState, 0);

     //check for update, mark correct target fps
-    lua_getglobal(_luaState, "_update");
+    lua_getglobal(_luaState, "_update60");
     if (lua_isfunction(_luaState, -1)) {
         _hasUpdate = true;
-        _targetFps = 30;
+        _targetFps = 60;
     }
     lua_pop(_luaState, 0);
     if (!_hasUpdate){
-        lua_getglobal(_luaState, "_update60");
+        lua_getglobal(_luaState, "_update");
         if (lua_isfunction(_luaState, -1)) {
             _hasUpdate = true;
-            _targetFps = 60;
+            _targetFps = 30;
         }
         lua_pop(_luaState, 0);
     }