mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 06:00:12 +00:00
add in menubar "Tools -> Download Override Settings"
This commit is contained in:
@@ -217,6 +217,7 @@
|
|||||||
<addaction name="menuInstall_Firmware"/>
|
<addaction name="menuInstall_Firmware"/>
|
||||||
<addaction name="action_Verify_installed_contents"/>
|
<addaction name="action_Verify_installed_contents"/>
|
||||||
<addaction name="action_Data_Manager"/>
|
<addaction name="action_Data_Manager"/>
|
||||||
|
<addaction name="action_Download_Override_Settings"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="menu_cabinet_applet"/>
|
<addaction name="menu_cabinet_applet"/>
|
||||||
<addaction name="menu_Applets"/>
|
<addaction name="menu_Applets"/>
|
||||||
@@ -577,6 +578,11 @@
|
|||||||
<string>&Data Manager</string>
|
<string>&Data Manager</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="action_Download_Override_Settings">
|
||||||
|
<property name="text">
|
||||||
|
<string>Download &Override Settings</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action name="action_Tree_View">
|
<action name="action_Tree_View">
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|||||||
@@ -551,10 +551,14 @@ MainWindow::MainWindow(bool has_broken_vulkan)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check for game overrides updates
|
// Check for game overrides updates
|
||||||
auto* overrides_updater = new OverridesUpdater(this);
|
overrides_updater = new OverridesUpdater(this);
|
||||||
connect(overrides_updater, &OverridesUpdater::ConfigChanged, this, [this]() {
|
connect(overrides_updater, &OverridesUpdater::ConfigChanged, this, [this]() {
|
||||||
config->SaveAllValues();
|
config->SaveAllValues();
|
||||||
});
|
});
|
||||||
|
connect(overrides_updater, &OverridesUpdater::UpdateCompleted, this,
|
||||||
|
[this](bool success, const QString& message) {
|
||||||
|
QMessageBox::information(this, tr("Game Overrides"), message);
|
||||||
|
});
|
||||||
overrides_updater->CheckAndUpdate();
|
overrides_updater->CheckAndUpdate();
|
||||||
|
|
||||||
QtCommon::system->SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
|
QtCommon::system->SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
|
||||||
@@ -1726,6 +1730,11 @@ void MainWindow::ConnectMenuEvents() {
|
|||||||
connect_menu(ui->action_About, &MainWindow::OnAbout);
|
connect_menu(ui->action_About, &MainWindow::OnAbout);
|
||||||
connect_menu(ui->action_Eden_Dependencies, &MainWindow::OnEdenDependencies);
|
connect_menu(ui->action_Eden_Dependencies, &MainWindow::OnEdenDependencies);
|
||||||
connect_menu(ui->action_Data_Manager, &MainWindow::OnDataDialog);
|
connect_menu(ui->action_Data_Manager, &MainWindow::OnDataDialog);
|
||||||
|
connect(ui->action_Download_Override_Settings, &QAction::triggered, this, [this] {
|
||||||
|
if (overrides_updater) {
|
||||||
|
overrides_updater->DownloadOverrides();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::UpdateMenuState() {
|
void MainWindow::UpdateMenuState() {
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class QtControllerSelectorDialog;
|
|||||||
class QtProfileSelectionDialog;
|
class QtProfileSelectionDialog;
|
||||||
class QtSoftwareKeyboardDialog;
|
class QtSoftwareKeyboardDialog;
|
||||||
class QtNXWebEngineView;
|
class QtNXWebEngineView;
|
||||||
|
class OverridesUpdater;
|
||||||
|
|
||||||
enum class StartGameType {
|
enum class StartGameType {
|
||||||
Normal, // Can use custom configuration
|
Normal, // Can use custom configuration
|
||||||
@@ -564,6 +565,9 @@ private:
|
|||||||
QtSoftwareKeyboardDialog* software_keyboard = nullptr;
|
QtSoftwareKeyboardDialog* software_keyboard = nullptr;
|
||||||
QtNXWebEngineView* web_applet = nullptr;
|
QtNXWebEngineView* web_applet = nullptr;
|
||||||
|
|
||||||
|
// Overrides updater
|
||||||
|
OverridesUpdater* overrides_updater = nullptr;
|
||||||
|
|
||||||
// True if amiibo file select is visible
|
// True if amiibo file select is visible
|
||||||
bool is_amiibo_file_select_active{};
|
bool is_amiibo_file_select_active{};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user