yuzu: Move compatibility list specifics to their own source files

Lets us keep the generic portions of the compatibility list code
together, and allows us to introduce a type alias that makes it so we
don't need to type out a very long type declaration anymore, making the
immediate readability of some code better.
This commit is contained in:
Lioncash
2018-09-09 19:09:37 -04:00
committed by fearlessTobi
parent 9238015dd4
commit 230edc8c7c
10 changed files with 55 additions and 31 deletions

View File

@@ -10,6 +10,7 @@
#include <QDir>
#include <QFileInfo>
#include "citra_qt/compatibility_list.h"
#include "citra_qt/game_list.h"
#include "citra_qt/game_list_p.h"
#include "citra_qt/game_list_worker.h"
@@ -27,9 +28,8 @@ bool HasSupportedFileExtension(const std::string& file_name) {
}
} // Anonymous namespace
GameListWorker::GameListWorker(
QList<UISettings::GameDir>& game_dirs,
const std::unordered_map<std::string, std::pair<QString, QString>>& compatibility_list)
GameListWorker::GameListWorker(QList<UISettings::GameDir>& game_dirs,
const CompatibilityList& compatibility_list)
: game_dirs(game_dirs), compatibility_list(compatibility_list) {}
GameListWorker::~GameListWorker() = default;