Compiling. Online and rollback work. Replays broken currently

This commit is contained in:
R2DLiu 2020-07-05 22:28:23 -04:00
commit ced28d629d
9 changed files with 51 additions and 7 deletions

View file

@ -57,7 +57,8 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent)
resize(w / dpr, h / dpr);
});
connect(Host::GetInstance(), &Host::RequestLowerWindow, this, &RenderWidget::LowerWindow);
connect(Host::GetInstance(), &Host::RequestExit, this, &RenderWidget::Exit);
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
if (state == Core::State::Running)
SetImGuiKeyMap();
@ -334,3 +335,18 @@ void RenderWidget::SetImGuiKeyMap()
for (auto entry : key_map)
ImGui::GetIO().KeyMap[entry[0]] = entry[1] & 0x1FF;
}
void RenderWidget::LowerWindow()
{
if (Config::Get(Config::MAIN_RENDER_TO_MAIN))
return;
lower();
}
void RenderWidget::Exit()
{
close();
}