From 9bbfad073a8697b0c80a3a9617feaddb6ff608dc Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Fri, 18 Nov 2022 22:17:03 +0100 Subject: [PATCH] RMG-Input: correct emulation check in OptionsDialog --- Source/RMG-Input/UserInterface/OptionsDialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/RMG-Input/UserInterface/OptionsDialog.cpp b/Source/RMG-Input/UserInterface/OptionsDialog.cpp index 0359f4e9..508cbf0e 100644 --- a/Source/RMG-Input/UserInterface/OptionsDialog.cpp +++ b/Source/RMG-Input/UserInterface/OptionsDialog.cpp @@ -23,9 +23,7 @@ OptionsDialog::OptionsDialog(QWidget* parent, OptionsDialogSettings settings) : this->gameboySaveLineEdit->setText(QString::fromStdString(settings.GameboySave)); this->removeDuplicateMappingsCheckbox->setChecked(settings.RemoveDuplicateMappings); - CoreRomHeader romHeader; - - if (!CoreGetCurrentRomHeader(romHeader)) + if (!CoreIsEmulationRunning() && !CoreIsEmulationPaused()) { this->hideEmulationInfoText(); }