Просмотр исходного кода

cheat_engine: Resolve implicit bool->u64 conversion

We can just return zero here.
Lioncash 6 лет назад
Родитель
Сommit
5b89291308
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/memory/cheat_engine.cpp

+ 1 - 1
src/core/memory/cheat_engine.cpp

@@ -42,7 +42,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
     if (applet_resource == nullptr) {
     if (applet_resource == nullptr) {
         LOG_WARNING(CheatEngine,
         LOG_WARNING(CheatEngine,
                     "Attempted to read input state, but applet resource is not initialized!");
                     "Attempted to read input state, but applet resource is not initialized!");
-        return false;
+        return 0;
     }
     }
 
 
     const auto press_state =
     const auto press_state =