diff options
| author | lizzie <lizzie@eden-emu.dev> | 2025-11-16 22:15:09 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-11-16 22:15:09 +0100 |
| commit | 7d239df065dc344c29d8c277835db9fef81e37d9 (patch) | |
| tree | 92437492c70197a5abfa3ae8ad260bbd0bc43667 /src/yuzu/data_dialog.cpp | |
| parent | b6908131969b3977e071d6737f2a102a0354224d (diff) | |
[hle, kernel] Add support for FW21 and kernel changes (#3004)
- Adapts kernel changes from atmosphere for firmware 21.0.0.
- Fixes launch error of firmware 21.0.0 applets.
- Adds new commands for `prepo` (New `SaveSystemReport` & `SaveSystemReportWithUser`).
- Adds new commands for `IReadOnlyApplicationControlDataInterface` (cmd 19; incomplete!)
- Adds `{12010, nullptr, "SetButtonConfigLeft"},` undocumented IHidServer.
- Adds new commands for `ngc:u` (`Mask2` and `Check2`)
- Adds new commands for system settings server (GetHttpAuthConfig) for webapplet
- Removes incompatible firmware popup warning.
Signed-off-by: lizzie lizzie@eden-emu.dev
Co-authored by: maufeat sahyno1996@gmail.com
Co-authored-by: crueter <crueter@eden-emu.dev>
Co-authored-by: JPikachu <jpikachu.eden@gmail.com>
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3004
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/yuzu/data_dialog.cpp')
| -rw-r--r-- | src/yuzu/data_dialog.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/yuzu/data_dialog.cpp b/src/yuzu/data_dialog.cpp index 4aaa12ce41..8caa362bdf 100644 --- a/src/yuzu/data_dialog.cpp +++ b/src/yuzu/data_dialog.cpp @@ -27,7 +27,7 @@ DataDialog::DataDialog(QWidget *parent) // TODO: Should we make this a single widget that pulls data from a model? #define WIDGET(label, name) \ ui->page->addWidget(new DataWidget(FrontendCommon::DataManager::DataDir::name, \ - QtCommon::StringLookup::name##Tooltip, \ + QtCommon::StringLookup::DataManager##name##Tooltip, \ QStringLiteral(#name), \ this)); \ ui->labels->addItem(label); @@ -80,39 +80,27 @@ DataWidget::DataWidget(FrontendCommon::DataManager::DataDir data_dir, void DataWidget::clear() { - std::string user_id{}; - if (m_dir == FrontendCommon::DataManager::DataDir::Saves) { - user_id = GetProfileIDString(); - } + std::string user_id = selectProfile(); QtCommon::Content::ClearDataDir(m_dir, user_id); scan(); } void DataWidget::open() { - std::string user_id{}; - if (m_dir == FrontendCommon::DataManager::DataDir::Saves) { - user_id = GetProfileIDString(); - } + std::string user_id = selectProfile(); QDesktopServices::openUrl(QUrl::fromLocalFile( QString::fromStdString(FrontendCommon::DataManager::GetDataDirString(m_dir, user_id)))); } void DataWidget::upload() { - std::string user_id{}; - if (m_dir == FrontendCommon::DataManager::DataDir::Saves) { - user_id = GetProfileIDString(); - } + std::string user_id = selectProfile(); QtCommon::Content::ExportDataDir(m_dir, user_id, m_exportName); } void DataWidget::download() { - std::string user_id{}; - if (m_dir == FrontendCommon::DataManager::DataDir::Saves) { - user_id = GetProfileIDString(); - } + std::string user_id = selectProfile(); QtCommon::Content::ImportDataDir(m_dir, user_id, std::bind(&DataWidget::scan, this)); } @@ -131,3 +119,13 @@ void DataWidget::scan() { watcher->setFuture( QtConcurrent::run([this]() { return FrontendCommon::DataManager::DataDirSize(m_dir); })); } + +std::string DataWidget::selectProfile() +{ + std::string user_id{}; + if (m_dir == FrontendCommon::DataManager::DataDir::Saves) { + user_id = GetProfileIDString(); + } + + return user_id; +} |
