mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-23 18:38:58 +02:00
add prompt and function for auto update override settings
This commit is contained in:
parent
2e7832762e
commit
d5be379a45
5 changed files with 39 additions and 1 deletions
|
|
@ -239,6 +239,9 @@ add_executable(yuzu
|
|||
ryujinx_dialog.h ryujinx_dialog.cpp ryujinx_dialog.ui
|
||||
main_window.h main_window.cpp main.ui
|
||||
|
||||
overrides_updater.h
|
||||
overrides_updater.cpp
|
||||
|
||||
configuration/system/new_user_dialog.h configuration/system/new_user_dialog.cpp configuration/system/new_user_dialog.ui
|
||||
configuration/system/profile_avatar_dialog.h configuration/system/profile_avatar_dialog.cpp
|
||||
configuration/addon/mod_select_dialog.h configuration/addon/mod_select_dialog.cpp configuration/addon/mod_select_dialog.ui
|
||||
|
|
@ -361,6 +364,7 @@ target_sources(yuzu
|
|||
|
||||
if (ENABLE_OPENSSL)
|
||||
target_link_libraries(yuzu PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||
target_compile_definitions(yuzu PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@
|
|||
#include "configuration/configure_per_game.h"
|
||||
#include "configuration/configure_tas.h"
|
||||
|
||||
#include "overrides_updater.h"
|
||||
|
||||
#include "util/clickable_label.h"
|
||||
#include "util/overlay_dialog.h"
|
||||
#include "util/controller_navigation.h"
|
||||
|
|
@ -548,6 +550,13 @@ MainWindow::MainWindow(bool has_broken_vulkan)
|
|||
}
|
||||
#endif
|
||||
|
||||
// Check for game overrides updates
|
||||
auto* overrides_updater = new OverridesUpdater(this);
|
||||
connect(overrides_updater, &OverridesUpdater::ConfigChanged, this, [this]() {
|
||||
config->SaveAllValues();
|
||||
});
|
||||
overrides_updater->CheckAndUpdate();
|
||||
|
||||
QtCommon::system->SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
|
||||
QtCommon::system->RegisterContentProvider(FileSys::ContentProviderUnionSlot::FrontendManual,
|
||||
QtCommon::provider.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue