|
|
@ -4,8 +4,6 @@ |
|
|
|
|
|
|
|
|
#pragma once |
|
|
#pragma once |
|
|
|
|
|
|
|
|
#include <unordered_map> |
|
|
|
|
|
|
|
|
|
|
|
#include <QFileSystemWatcher> |
|
|
#include <QFileSystemWatcher> |
|
|
#include <QHBoxLayout> |
|
|
#include <QHBoxLayout> |
|
|
#include <QLabel> |
|
|
#include <QLabel> |
|
|
@ -21,6 +19,7 @@ |
|
|
#include <QWidget> |
|
|
#include <QWidget> |
|
|
|
|
|
|
|
|
#include "common/common_types.h" |
|
|
#include "common/common_types.h" |
|
|
|
|
|
#include "yuzu/compatibility_list.h" |
|
|
|
|
|
|
|
|
class GameListWorker; |
|
|
class GameListWorker; |
|
|
class GMainWindow; |
|
|
class GMainWindow; |
|
|
@ -90,9 +89,8 @@ signals: |
|
|
void GameChosen(QString game_path); |
|
|
void GameChosen(QString game_path); |
|
|
void ShouldCancelWorker(); |
|
|
void ShouldCancelWorker(); |
|
|
void OpenFolderRequested(u64 program_id, GameListOpenTarget target); |
|
|
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: |
|
|
private slots: |
|
|
void onTextChanged(const QString& newText); |
|
|
void onTextChanged(const QString& newText); |
|
|
@ -114,7 +112,7 @@ private: |
|
|
QStandardItemModel* item_model = nullptr; |
|
|
QStandardItemModel* item_model = nullptr; |
|
|
GameListWorker* current_worker = nullptr; |
|
|
GameListWorker* current_worker = nullptr; |
|
|
QFileSystemWatcher* watcher = nullptr; |
|
|
QFileSystemWatcher* watcher = nullptr; |
|
|
std::unordered_map<std::string, std::pair<QString, QString>> compatibility_list; |
|
|
|
|
|
|
|
|
CompatibilityList compatibility_list; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(GameListOpenTarget); |
|
|
Q_DECLARE_METATYPE(GameListOpenTarget); |