From 4a587b81b285bcd41246329e89591be7cfe37c8a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 31 Aug 2018 12:21:34 -0400 Subject: core/core: Replace includes with forward declarations where applicable The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers. --- src/yuzu/game_list.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/yuzu/game_list.h') diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index c01351dc9..6a5c2f5f8 100644 --- a/src/yuzu/game_list.h +++ b/src/yuzu/game_list.h @@ -4,6 +4,8 @@ #pragma once +#include + #include #include #include @@ -17,9 +19,13 @@ #include #include #include -#include "main.h" class GameListWorker; +class GMainWindow; + +namespace FileSys { +class VfsFilesystem; +} enum class GameListOpenTarget { SaveData }; @@ -62,7 +68,7 @@ public: QToolButton* button_filter_close = nullptr; }; - explicit GameList(FileSys::VirtualFilesystem vfs, GMainWindow* parent = nullptr); + explicit GameList(std::shared_ptr vfs, GMainWindow* parent = nullptr); ~GameList() override; void clearFilter(); @@ -97,7 +103,7 @@ private: void PopupContextMenu(const QPoint& menu_location); void RefreshGameDirectory(); - FileSys::VirtualFilesystem vfs; + std::shared_ptr vfs; SearchField* search_field; GMainWindow* main_window = nullptr; QVBoxLayout* layout = nullptr; -- cgit v1.2.3