early-access version 3406

This commit is contained in:
pineappleEA 2023-02-17 06:30:48 +01:00
parent cb4feaa331
commit 08eaaa3b39
5 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 3405. This is the source code for early-access 3406.
## Legal Notice ## Legal Notice

View File

@ -1103,6 +1103,7 @@ void Config::SaveValues() {
SaveRendererValues(); SaveRendererValues();
SaveAudioValues(); SaveAudioValues();
SaveSystemValues(); SaveSystemValues();
qt_config->sync();
} }
void Config::SaveAudioValues() { void Config::SaveAudioValues() {

View File

@ -870,6 +870,7 @@ void GameList::ToggleFavorite(u64 program_id) {
tree_view->setRowHidden(0, item_model->invisibleRootItem()->index(), true); tree_view->setRowHidden(0, item_model->invisibleRootItem()->index(), true);
} }
} }
SaveConfig();
} }
void GameList::AddFavorite(u64 program_id) { void GameList::AddFavorite(u64 program_id) {

View File

@ -122,6 +122,7 @@ signals:
void AddDirectory(); void AddDirectory();
void ShowList(bool show); void ShowList(bool show);
void PopulatingCompleted(); void PopulatingCompleted();
void SaveConfig();
private slots: private slots:
void OnItemExpanded(const QModelIndex& item); void OnItemExpanded(const QModelIndex& item);

View File

@ -1279,6 +1279,7 @@ void GMainWindow::ConnectWidgetEvents() {
connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList); connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList);
connect(game_list, &GameList::PopulatingCompleted, connect(game_list, &GameList::PopulatingCompleted,
[this] { multiplayer_state->UpdateGameList(game_list->GetModel()); }); [this] { multiplayer_state->UpdateGameList(game_list->GetModel()); });
connect(game_list, &GameList::SaveConfig, this, &GMainWindow::OnSaveConfig);
connect(game_list, &GameList::OpenPerGameGeneralRequested, this, connect(game_list, &GameList::OpenPerGameGeneralRequested, this,
&GMainWindow::OnGameListOpenPerGameProperties); &GMainWindow::OnGameListOpenPerGameProperties);
@ -2662,6 +2663,8 @@ void GMainWindow::OnGameListAddDirectory() {
} else { } else {
LOG_WARNING(Frontend, "Selected directory is already in the game list"); LOG_WARNING(Frontend, "Selected directory is already in the game list");
} }
OnSaveConfig();
} }
void GMainWindow::OnGameListShowList(bool show) { void GMainWindow::OnGameListShowList(bool show) {
@ -3023,8 +3026,10 @@ void GMainWindow::OnRestartGame() {
if (!system->IsPoweredOn()) { if (!system->IsPoweredOn()) {
return; return;
} }
// Make a copy since BootGame edits game_path // Make a copy since ShutdownGame edits game_path
BootGame(QString(current_game_path)); const auto current_game = QString(current_game_path);
ShutdownGame();
BootGame(current_game);
} }
void GMainWindow::OnPauseGame() { void GMainWindow::OnPauseGame() {
@ -3388,6 +3393,7 @@ void GMainWindow::OnConfigureTas() {
return; return;
} else if (result == QDialog::Accepted) { } else if (result == QDialog::Accepted) {
dialog.ApplyConfiguration(); dialog.ApplyConfiguration();
OnSaveConfig();
} }
} }