summaryrefslogtreecommitdiff
path: root/src/yuzu/game_list.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-07-30 09:32:26 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-10-07 13:50:13 -0400
commit4ce53ffe6a61cb853f2fdd88211f35cec63e2f70 (patch)
treee2820ff4acde031dc0eb317a0610b478f0748321 /src/yuzu/game_list.cpp
parent493905665c2e9ea200301b44dcee599933f5b62c (diff)
game_list: Remove global instances of Core::System
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r--src/yuzu/game_list.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index f9d949e75..99c91a6a8 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -305,8 +305,8 @@ void GameList::OnFilterCloseClicked() {
}
GameList::GameList(FileSys::VirtualFilesystem vfs, FileSys::ManualContentProvider* provider,
- GMainWindow* parent)
- : QWidget{parent}, vfs(std::move(vfs)), provider(provider) {
+ Core::System& system_, GMainWindow* parent)
+ : QWidget{parent}, vfs(std::move(vfs)), provider(provider), system{system_} {
watcher = new QFileSystemWatcher(this);
connect(watcher, &QFileSystemWatcher::directoryChanged, this, &GameList::RefreshGameDirectory);
@@ -738,7 +738,8 @@ void GameList::PopulateAsync(QVector<UISettings::GameDir>& game_dirs) {
emit ShouldCancelWorker();
- GameListWorker* worker = new GameListWorker(vfs, provider, game_dirs, compatibility_list);
+ GameListWorker* worker =
+ new GameListWorker(vfs, provider, game_dirs, compatibility_list, system);
connect(worker, &GameListWorker::EntryReady, this, &GameList::AddEntry, Qt::QueuedConnection);
connect(worker, &GameListWorker::DirEntryReady, this, &GameList::AddDirEntry,