Qt/Properties: Implement "Gecko codes" tab

This commit is contained in:
spycrab
2017-09-10 19:10:45 +02:00
parent 5aecd61ede
commit f90e81b9db
12 changed files with 302 additions and 7 deletions

View File

@ -10,6 +10,8 @@
#include <QPushButton>
#include <QStyle>
#include <iostream>
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "DolphinQt2/Settings.h"
@ -21,8 +23,10 @@ CheatWarningWidget::CheatWarningWidget(const std::string& game_id) : m_game_id(g
connect(&Settings::Instance(), &Settings::EnableCheatsChanged,
[this] { Update(Core::IsRunning()); });
connect(this, &CheatWarningWidget::EmulationStarted, [this] { Update(true); });
connect(this, &CheatWarningWidget::EmulationStopped, [this] { Update(false); });
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
std::cout << (state == Core::State::Running) << std::endl;
Update(state == Core::State::Running);
});
Update(Core::IsRunning());
}