summaryrefslogtreecommitdiffstats
path: root/src/yuzu/game_list.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-10 04:32:53 +0200
committerGitHub <noreply@github.com>2018-09-10 04:32:53 +0200
commit7ddd5b765d0410cbeea1ca11f36852010a98b8b1 (patch)
tree9190633802a21094ca7780ae8c0d0f0cd46a4095 /src/yuzu/game_list.h
parentMerge pull request #1276 from FearlessTobi/fix-stupid-stub (diff)
parentgame_list: Make CompatibilityList parameter of NavigateToGamedbEntryRequested() a const reference (diff)
downloadyuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar.gz
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar.bz2
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar.lz
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar.xz
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.tar.zst
yuzu-7ddd5b765d0410cbeea1ca11f36852010a98b8b1.zip
Diffstat (limited to 'src/yuzu/game_list.h')
-rw-r--r--src/yuzu/game_list.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h
index 3fcb298ed..2713e7b54 100644
--- a/src/yuzu/game_list.h
+++ b/src/yuzu/game_list.h
@@ -4,8 +4,6 @@
#pragma once
-#include <unordered_map>
-
#include <QFileSystemWatcher>
#include <QHBoxLayout>
#include <QLabel>
@@ -21,6 +19,7 @@
#include <QWidget>
#include "common/common_types.h"
+#include "yuzu/compatibility_list.h"
class GameListWorker;
class GMainWindow;
@@ -90,9 +89,8 @@ signals:
void GameChosen(QString game_path);
void ShouldCancelWorker();
void OpenFolderRequested(u64 program_id, GameListOpenTarget target);
- void NavigateToGamedbEntryRequested(
- u64 program_id,
- std::unordered_map<std::string, std::pair<QString, QString>>& compatibility_list);
+ void NavigateToGamedbEntryRequested(u64 program_id,
+ const CompatibilityList& compatibility_list);
private slots:
void onTextChanged(const QString& newText);
@@ -114,7 +112,7 @@ private:
QStandardItemModel* item_model = nullptr;
GameListWorker* current_worker = nullptr;
QFileSystemWatcher* watcher = nullptr;
- std::unordered_map<std::string, std::pair<QString, QString>> compatibility_list;
+ CompatibilityList compatibility_list;
};
Q_DECLARE_METATYPE(GameListOpenTarget);