Browse Source
live refresh
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3472/head
crueter
1 week ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
5 changed files with
14 additions and
0 deletions
-
src/yuzu/configuration/configure_per_game.cpp
-
src/yuzu/configuration/configure_per_game.h
-
src/yuzu/configuration/configure_per_game_addons.cpp
-
src/yuzu/configuration/configure_per_game_addons.h
-
src/yuzu/main_window.cpp
|
|
@ -87,6 +87,9 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const std::st |
|
|
|
|
|
|
|
|
addons_tab->SetTitleId(title_id); |
|
|
addons_tab->SetTitleId(title_id); |
|
|
|
|
|
|
|
|
|
|
|
connect(addons_tab.get(), &ConfigurePerGameAddons::RefreshGameList, this, |
|
|
|
|
|
&ConfigurePerGame::RefreshGameList); |
|
|
|
|
|
|
|
|
scene = new QGraphicsScene; |
|
|
scene = new QGraphicsScene; |
|
|
ui->icon_view->setScene(scene); |
|
|
ui->icon_view->setScene(scene); |
|
|
|
|
|
|
|
|
|
|
|
@ -64,6 +64,9 @@ public: |
|
|
|
|
|
|
|
|
void LoadFromFile(FileSys::VirtualFile file_); |
|
|
void LoadFromFile(FileSys::VirtualFile file_); |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
|
void RefreshGameList(); |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
void changeEvent(QEvent* event) override; |
|
|
void changeEvent(QEvent* event) override; |
|
|
void RetranslateUI(); |
|
|
void RetranslateUI(); |
|
|
|
|
|
@ -119,6 +119,7 @@ void ConfigurePerGameAddons::InstallModFolder() { |
|
|
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed.")); |
|
|
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed.")); |
|
|
item_model->removeRows(0, item_model->rowCount()); |
|
|
item_model->removeRows(0, item_model->rowCount()); |
|
|
list_items.clear(); |
|
|
list_items.clear(); |
|
|
|
|
|
emit RefreshGameList(); |
|
|
LoadConfiguration(); |
|
|
LoadConfiguration(); |
|
|
break; |
|
|
break; |
|
|
case FrontendCommon::Failed: |
|
|
case FrontendCommon::Failed: |
|
|
@ -148,6 +149,7 @@ void ConfigurePerGameAddons::InstallModZip() { |
|
|
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed.")); |
|
|
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed.")); |
|
|
item_model->removeRows(0, item_model->rowCount()); |
|
|
item_model->removeRows(0, item_model->rowCount()); |
|
|
list_items.clear(); |
|
|
list_items.clear(); |
|
|
|
|
|
emit RefreshGameList(); |
|
|
LoadConfiguration(); |
|
|
LoadConfiguration(); |
|
|
break; |
|
|
break; |
|
|
case FrontendCommon::Failed: |
|
|
case FrontendCommon::Failed: |
|
|
|
|
|
@ -42,6 +42,10 @@ public: |
|
|
public slots: |
|
|
public slots: |
|
|
void InstallModFolder(); |
|
|
void InstallModFolder(); |
|
|
void InstallModZip(); |
|
|
void InstallModZip(); |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
|
void RefreshGameList(); |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
void changeEvent(QEvent* event) override; |
|
|
void changeEvent(QEvent* event) override; |
|
|
void RetranslateUI(); |
|
|
void RetranslateUI(); |
|
|
|
|
|
@ -3656,6 +3656,8 @@ void MainWindow::OpenPerGameConfiguration(u64 title_id, const std::string& file_ |
|
|
Settings::SetConfiguringGlobal(false); |
|
|
Settings::SetConfiguringGlobal(false); |
|
|
ConfigurePerGame dialog(this, title_id, file_name, vk_device_records, *QtCommon::system); |
|
|
ConfigurePerGame dialog(this, title_id, file_name, vk_device_records, *QtCommon::system); |
|
|
dialog.LoadFromFile(v_file); |
|
|
dialog.LoadFromFile(v_file); |
|
|
|
|
|
|
|
|
|
|
|
connect(&dialog, &ConfigurePerGame::RefreshGameList, this, &MainWindow::OnGameListRefresh); |
|
|
const auto result = dialog.exec(); |
|
|
const auto result = dialog.exec(); |
|
|
|
|
|
|
|
|
if (result != QDialog::Accepted && !UISettings::values.configuration_applied) { |
|
|
if (result != QDialog::Accepted && !UISettings::values.configuration_applied) { |
|
|
|