foxygit / fake-08-xbox360 Log in
commit a1dc9924ceb19a1d6f6c25ac00977e2ef92398a8
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Jan 25 21:22:05 2022 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Jan 25 21:22:05 2022 -0700

    Clean up warnings
---
 source/graphics.cpp | 3 ---
 source/vm.cpp       | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/source/graphics.cpp b/source/graphics.cpp
index 7054a4c..947459a 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -17,9 +17,6 @@
 #include <fix32.h>
 using namespace z8;

-const uint8_t PicoScreenWidth = 128;
-const uint8_t PicoScreenHeight = 128;
-

 //call initialize to make sure defaults are correct
 Graphics::Graphics(std::string fontdata, PicoRam* memory) {
diff --git a/source/vm.cpp b/source/vm.cpp
index 9da8dcc..f2048ef 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -317,7 +317,7 @@ bool Vm::loadCart(Cart* cart) {
         if (customBiosLua.length() > 0) {
             int doStrRes = luaL_dostring(_luaState, customBiosLua.c_str());

-            if (! doStrRes == LUA_OK){
+            if (doStrRes != LUA_OK){
                 //bad lua passed
                 Logger_Write("Error: %s\n", lua_tostring(_luaState, -1));
                 lua_pop(_luaState, 1);
@@ -597,7 +597,7 @@ void Vm::GameLoop() {
 bool Vm::ExecuteLua(string luaString, string callbackFunction){
     int success = luaL_dostring(_luaState, luaString.c_str());

-    if (! success == LUA_OK){
+    if (success != LUA_OK){
         //bad lua passed
         Logger_Write("Error: %s\n", lua_tostring(_luaState, -1));
         lua_pop(_luaState, 1);