From 89a5b9b622743eac7f6b3fab0e22f2f8f47c13bb Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Fri, 28 Sep 2018 17:34:47 -0400 Subject: [PATCH] qt/configure_system: FS decoupled --- src/citra_qt/configuration/configure_system.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/citra_qt/configuration/configure_system.cpp b/src/citra_qt/configuration/configure_system.cpp index 1fe5b41ee..5597e0a6b 100644 --- a/src/citra_qt/configuration/configure_system.cpp +++ b/src/citra_qt/configuration/configure_system.cpp @@ -7,7 +7,6 @@ #include "citra_qt/ui_settings.h" #include "core/core.h" #include "core/hle/service/cfg/cfg.h" -#include "core/hle/service/fs/archive.h" #include "core/hle/service/ptm/ptm.h" #include "core/settings.h" #include "ui_configure_system.h" @@ -252,11 +251,8 @@ void ConfigureSystem::setConfiguration() { ui->group_system_settings->setEnabled(false); } else { // This tab is enabled only when game is not running (i.e. all service are not initialized). - // Temporarily register archive types and load the config savegame file to memory. - Service::FS::RegisterArchiveTypes(); cfg = std::make_shared(); ReadSystemSettings(); - Service::FS::UnregisterArchiveTypes(); ui->label_disable_info->hide(); } @@ -348,10 +344,7 @@ void ConfigureSystem::applyConfiguration() { // apply play coin u16 new_play_coin = static_cast(ui->spinBox_play_coins->value()); if (play_coin != new_play_coin) { - // archive types must be registered to set play coins - Service::FS::RegisterArchiveTypes(); Service::PTM::Module::SetPlayCoins(new_play_coin); - Service::FS::UnregisterArchiveTypes(); } // update the config savegame if any item is modified.