From 18f9a847cdcb2420bc1d68dbbfd42487cf117a50 Mon Sep 17 00:00:00 2001 From: Collecting Date: Thu, 15 Jan 2026 06:42:44 +0000 Subject: [PATCH] fix(settings): Ensure system.IsPoweredOn() check for Settings Sharing/Use Feature Signed-off-by: Collecting --- src/citron/configuration/configure_per_game.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/citron/configuration/configure_per_game.cpp b/src/citron/configuration/configure_per_game.cpp index 97dc30875..beaacb146 100644 --- a/src/citron/configuration/configure_per_game.cpp +++ b/src/citron/configuration/configure_per_game.cpp @@ -922,6 +922,13 @@ void ConfigurePerGame::AnimateTabSwitch(int id) { } void ConfigurePerGame::OnShareSettings() { + // Check if emulation is running + if (system.IsPoweredOn()) { + QMessageBox::warning(this, tr("Emulation Running"), + tr("Emulation is running! You cannot use this feature until the game is off.")); + return; + } + QFileInfo file_info(QString::fromStdString(file_name)); QString base_name = file_info.baseName(); auto config_path = Common::FS::GetCitronPath(Common::FS::CitronPath::ConfigDir) / "custom"; @@ -1058,6 +1065,13 @@ void ConfigurePerGame::OnShareSettings() { } void ConfigurePerGame::OnUseSettings() { + // Check if emulation is running + if (system.IsPoweredOn()) { + QMessageBox::warning(this, tr("Emulation Running"), + tr("Emulation is running! You cannot use this feature until the game is off.")); + return; + } + auto config_path = Common::FS::GetCitronPath(Common::FS::CitronPath::ConfigDir) / "custom"; QString load_path = QFileDialog::getOpenFileName(this, tr("Use Settings Profile"), QString::fromStdString(config_path.string()),