From fdb6c878d8c375e04bce58b2c55161efe8abde8f Mon Sep 17 00:00:00 2001 From: Anon Date: Tue, 31 Jan 2017 18:27:11 -0600 Subject: [PATCH] Fix 0x09 codes. Fix includes --- src/citra_qt/cheat_gui.cpp | 3 +-- src/citra_qt/cheat_gui.h | 2 -- src/common/string_util.cpp | 1 + src/common/string_util.h | 1 - src/core/cheat_core.cpp | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/citra_qt/cheat_gui.cpp b/src/citra_qt/cheat_gui.cpp index 0e9727285..814303183 100644 --- a/src/citra_qt/cheat_gui.cpp +++ b/src/citra_qt/cheat_gui.cpp @@ -3,7 +3,6 @@ #include #include #include - #include "citra_qt/cheat_gui.h" #include "core/hle/kernel/process.h" #include "ui_cheat_gui.h" @@ -203,4 +202,4 @@ NewCheatDialog::NewCheatDialog(QWidget* parent) : QDialog(parent) { mainLayout->addLayout(typePanel); mainLayout->addLayout(confirmationPanel); } -NewCheatDialog::~NewCheatDialog() {} \ No newline at end of file +NewCheatDialog::~NewCheatDialog() {} diff --git a/src/citra_qt/cheat_gui.h b/src/citra_qt/cheat_gui.h index 158a6dafc..03cb3df8a 100644 --- a/src/citra_qt/cheat_gui.h +++ b/src/citra_qt/cheat_gui.h @@ -5,9 +5,7 @@ #pragma once #include - #include - #include "core/cheat_core.h" class QComboBox; diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index a297caef4..13605a33e 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include "common/common_paths.h" #include "common/logging/log.h" diff --git a/src/common/string_util.h b/src/common/string_util.h index e5d6cbf24..18b7b9886 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/src/core/cheat_core.cpp b/src/core/cheat_core.cpp index c8c2d2be8..5893b7570 100644 --- a/src/core/cheat_core.cpp +++ b/src/core/cheat_core.cpp @@ -260,7 +260,7 @@ void GatewayCheat::Execute() { if (line.address == 0) line.address = offset; val = Memory::Read16(line.address); - if (static_cast(line.value) == val) { + if (static_cast(line.value) == (!static_cast(line.value >> 16) & val)) { if (if_flag > 0) if_flag--; } else {