Fix 0x09 codes. Fix includes

This commit is contained in:
Anon 2017-01-31 18:27:11 -06:00
parent 3c01d6ad8b
commit fdb6c878d8
5 changed files with 3 additions and 6 deletions

View File

@ -3,7 +3,6 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QLineEdit> #include <QLineEdit>
#include <QTableWidgetItem> #include <QTableWidgetItem>
#include "citra_qt/cheat_gui.h" #include "citra_qt/cheat_gui.h"
#include "core/hle/kernel/process.h" #include "core/hle/kernel/process.h"
#include "ui_cheat_gui.h" #include "ui_cheat_gui.h"
@ -203,4 +202,4 @@ NewCheatDialog::NewCheatDialog(QWidget* parent) : QDialog(parent) {
mainLayout->addLayout(typePanel); mainLayout->addLayout(typePanel);
mainLayout->addLayout(confirmationPanel); mainLayout->addLayout(confirmationPanel);
} }
NewCheatDialog::~NewCheatDialog() {} NewCheatDialog::~NewCheatDialog() {}

View File

@ -5,9 +5,7 @@
#pragma once #pragma once
#include <memory> #include <memory>
#include <QDialog> #include <QDialog>
#include "core/cheat_core.h" #include "core/cheat_core.h"
class QComboBox; class QComboBox;

View File

@ -7,6 +7,7 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <locale>
#include <boost/range/algorithm/transform.hpp> #include <boost/range/algorithm/transform.hpp>
#include "common/common_paths.h" #include "common/common_paths.h"
#include "common/logging/log.h" #include "common/logging/log.h"

View File

@ -10,7 +10,6 @@
#include <cstddef> #include <cstddef>
#include <functional> #include <functional>
#include <iomanip> #include <iomanip>
#include <locale>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -260,7 +260,7 @@ void GatewayCheat::Execute() {
if (line.address == 0) if (line.address == 0)
line.address = offset; line.address = offset;
val = Memory::Read16(line.address); val = Memory::Read16(line.address);
if (static_cast<u16>(line.value) == val) { if (static_cast<u16>(line.value) == (!static_cast<u16>(line.value >> 16) & val)) {
if (if_flag > 0) if (if_flag > 0)
if_flag--; if_flag--;
} else { } else {