diff options
| author | 2020-07-17 13:04:07 -0400 | |
|---|---|---|
| committer | 2020-07-29 06:50:30 -0400 | |
| commit | b317942131ba48577e8303c475e9720fd93e54c7 (patch) | |
| tree | fe15e383d0f0f53c14d0033cdcb831ade12a74d4 /src | |
| parent | main: Remove assert for opening savedata when program_id = 0 (diff) | |
| download | yuzu-b317942131ba48577e8303c475e9720fd93e54c7.tar.gz yuzu-b317942131ba48577e8303c475e9720fd93e54c7.tar.xz yuzu-b317942131ba48577e8303c475e9720fd93e54c7.zip | |
game_list: Limit context menu options for homebrew
Hides the following options when the title id is 0:
- Open Save Location
- Open Mod Data Location
- Open Transferable Shader Cache
- All removal options except Remove Custom Configuration
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 20073f3c8..62acc3720 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -491,7 +491,13 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id, std::string pat | |||
| 491 | context_menu.addSeparator(); | 491 | context_menu.addSeparator(); |
| 492 | QAction* properties = context_menu.addAction(tr("Properties")); | 492 | QAction* properties = context_menu.addAction(tr("Properties")); |
| 493 | 493 | ||
| 494 | open_save_location->setEnabled(program_id != 0); | 494 | open_save_location->setVisible(program_id != 0); |
| 495 | open_mod_location->setVisible(program_id != 0); | ||
| 496 | open_transferable_shader_cache->setVisible(program_id != 0); | ||
| 497 | remove_update->setVisible(program_id != 0); | ||
| 498 | remove_dlc->setVisible(program_id != 0); | ||
| 499 | remove_shader_cache->setVisible(program_id != 0); | ||
| 500 | remove_all_content->setVisible(program_id != 0); | ||
| 495 | auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id); | 501 | auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id); |
| 496 | navigate_to_gamedb_entry->setVisible(it != compatibility_list.end() && program_id != 0); | 502 | navigate_to_gamedb_entry->setVisible(it != compatibility_list.end() && program_id != 0); |
| 497 | 503 | ||