mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 08:32:48 -06:00
Removed 'Navigate to GameDB entry' context menu option
The site this option points to no longer exists Closes #268
This commit is contained in:
parent
e50cf88ed2
commit
6de236051c
4 changed files with 0 additions and 24 deletions
|
@ -601,7 +601,6 @@ void GameList::AddGamePopup(QMenu& context_menu, const QString& path, const QStr
|
||||||
QAction* uninstall_dlc = uninstall_menu->addAction(tr("DLC"));
|
QAction* uninstall_dlc = uninstall_menu->addAction(tr("DLC"));
|
||||||
|
|
||||||
QAction* remove_play_time_data = context_menu.addAction(tr("Remove Play Time Data"));
|
QAction* remove_play_time_data = context_menu.addAction(tr("Remove Play Time Data"));
|
||||||
QAction* navigate_to_gamedb_entry = context_menu.addAction(tr("Navigate to GameDB entry"));
|
|
||||||
|
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__)
|
||||||
QMenu* shortcut_menu = context_menu.addMenu(tr("Create Shortcut"));
|
QMenu* shortcut_menu = context_menu.addMenu(tr("Create Shortcut"));
|
||||||
|
@ -672,9 +671,6 @@ void GameList::AddGamePopup(QMenu& context_menu, const QString& path, const QStr
|
||||||
uninstall_update->setEnabled(has_update);
|
uninstall_update->setEnabled(has_update);
|
||||||
uninstall_dlc->setEnabled(has_dlc);
|
uninstall_dlc->setEnabled(has_dlc);
|
||||||
|
|
||||||
auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id);
|
|
||||||
navigate_to_gamedb_entry->setVisible(it != compatibility_list.end());
|
|
||||||
|
|
||||||
connect(favorite, &QAction::triggered, [this, program_id]() { ToggleFavorite(program_id); });
|
connect(favorite, &QAction::triggered, [this, program_id]() { ToggleFavorite(program_id); });
|
||||||
connect(open_save_location, &QAction::triggered, this, [this, program_id] {
|
connect(open_save_location, &QAction::triggered, this, [this, program_id] {
|
||||||
emit OpenFolderRequested(program_id, GameListOpenTarget::SAVE_DATA);
|
emit OpenFolderRequested(program_id, GameListOpenTarget::SAVE_DATA);
|
||||||
|
@ -724,9 +720,6 @@ void GameList::AddGamePopup(QMenu& context_menu, const QString& path, const QStr
|
||||||
[this, path, program_id] { emit DumpRomFSRequested(path, program_id); });
|
[this, path, program_id] { emit DumpRomFSRequested(path, program_id); });
|
||||||
connect(remove_play_time_data, &QAction::triggered,
|
connect(remove_play_time_data, &QAction::triggered,
|
||||||
[this, program_id]() { emit RemovePlayTimeRequested(program_id); });
|
[this, program_id]() { emit RemovePlayTimeRequested(program_id); });
|
||||||
connect(navigate_to_gamedb_entry, &QAction::triggered, this, [this, program_id]() {
|
|
||||||
emit NavigateToGamedbEntryRequested(program_id, compatibility_list);
|
|
||||||
});
|
|
||||||
connect(properties, &QAction::triggered, this,
|
connect(properties, &QAction::triggered, this,
|
||||||
[this, path]() { emit OpenPerGameGeneralRequested(path); });
|
[this, path]() { emit OpenPerGameGeneralRequested(path); });
|
||||||
connect(open_shader_cache_location, &QAction::triggered, this, [this, program_id] {
|
connect(open_shader_cache_location, &QAction::triggered, this, [this, program_id] {
|
||||||
|
|
|
@ -100,8 +100,6 @@ signals:
|
||||||
void CreateShortcut(u64 program_id, const std::string& game_path,
|
void CreateShortcut(u64 program_id, const std::string& game_path,
|
||||||
GameListShortcutTarget target);
|
GameListShortcutTarget target);
|
||||||
void RemovePlayTimeRequested(u64 program_id);
|
void RemovePlayTimeRequested(u64 program_id);
|
||||||
void NavigateToGamedbEntryRequested(u64 program_id,
|
|
||||||
const CompatibilityList& compatibility_list);
|
|
||||||
void OpenPerGameGeneralRequested(const QString file);
|
void OpenPerGameGeneralRequested(const QString file);
|
||||||
void DumpRomFSRequested(QString game_path, u64 program_id);
|
void DumpRomFSRequested(QString game_path, u64 program_id);
|
||||||
void OpenDirectory(const QString& directory);
|
void OpenDirectory(const QString& directory);
|
||||||
|
|
|
@ -838,8 +838,6 @@ void GMainWindow::ConnectWidgetEvents() {
|
||||||
connect(game_list, &GameList::OpenFolderRequested, this, &GMainWindow::OnGameListOpenFolder);
|
connect(game_list, &GameList::OpenFolderRequested, this, &GMainWindow::OnGameListOpenFolder);
|
||||||
connect(game_list, &GameList::RemovePlayTimeRequested, this,
|
connect(game_list, &GameList::RemovePlayTimeRequested, this,
|
||||||
&GMainWindow::OnGameListRemovePlayTimeData);
|
&GMainWindow::OnGameListRemovePlayTimeData);
|
||||||
connect(game_list, &GameList::NavigateToGamedbEntryRequested, this,
|
|
||||||
&GMainWindow::OnGameListNavigateToGamedbEntry);
|
|
||||||
connect(game_list, &GameList::CreateShortcut, this, &GMainWindow::OnGameListCreateShortcut);
|
connect(game_list, &GameList::CreateShortcut, this, &GMainWindow::OnGameListCreateShortcut);
|
||||||
connect(game_list, &GameList::DumpRomFSRequested, this, &GMainWindow::OnGameListDumpRomFS);
|
connect(game_list, &GameList::DumpRomFSRequested, this, &GMainWindow::OnGameListDumpRomFS);
|
||||||
connect(game_list, &GameList::AddDirectory, this, &GMainWindow::OnGameListAddDirectory);
|
connect(game_list, &GameList::AddDirectory, this, &GMainWindow::OnGameListAddDirectory);
|
||||||
|
@ -1709,17 +1707,6 @@ void GMainWindow::OnGameListRemovePlayTimeData(u64 program_id) {
|
||||||
game_list->PopulateAsync(UISettings::values.game_dirs);
|
game_list->PopulateAsync(UISettings::values.game_dirs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnGameListNavigateToGamedbEntry(u64 program_id,
|
|
||||||
const CompatibilityList& compatibility_list) {
|
|
||||||
auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id);
|
|
||||||
|
|
||||||
QString directory;
|
|
||||||
if (it != compatibility_list.end())
|
|
||||||
directory = it->second.second;
|
|
||||||
|
|
||||||
QDesktopServices::openUrl(QUrl(QStringLiteral("https://citra-emu.org/game/") + directory));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path,
|
bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path,
|
||||||
const std::string& comment,
|
const std::string& comment,
|
||||||
const std::filesystem::path& icon_path,
|
const std::filesystem::path& icon_path,
|
||||||
|
|
|
@ -232,8 +232,6 @@ private slots:
|
||||||
void OnGameListLoadFile(QString game_path);
|
void OnGameListLoadFile(QString game_path);
|
||||||
void OnGameListOpenFolder(u64 program_id, GameListOpenTarget target);
|
void OnGameListOpenFolder(u64 program_id, GameListOpenTarget target);
|
||||||
void OnGameListRemovePlayTimeData(u64 program_id);
|
void OnGameListRemovePlayTimeData(u64 program_id);
|
||||||
void OnGameListNavigateToGamedbEntry(u64 program_id,
|
|
||||||
const CompatibilityList& compatibility_list);
|
|
||||||
void OnGameListCreateShortcut(u64 program_id, const std::string& game_path,
|
void OnGameListCreateShortcut(u64 program_id, const std::string& game_path,
|
||||||
GameListShortcutTarget target);
|
GameListShortcutTarget target);
|
||||||
void OnGameListDumpRomFS(QString game_path, u64 program_id);
|
void OnGameListDumpRomFS(QString game_path, u64 program_id);
|
||||||
|
|
Loading…
Reference in a new issue