mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Qt/Properties: Implement "Gecko codes" tab
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user