aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-10-14 14:12:22 -0400
committerGitHub <noreply@github.com>2021-10-14 14:12:22 -0400
commitb02d662980a401057d2ff7c1522d47f9f6538d81 (patch)
tree2717ff56b111eb1adfcb712e14ad69f25ab76b68 /src/yuzu/bootmanager.h
parent894b483a0d619c3ceaa79fa0ff4cef6d37301f9c (diff)
parentb6894bfc5b86c2fae0b401f2cfc294a08994781d (diff)
Merge pull request #6774 from lat9nq/remove-global-yuzu
yuzu qt: Remove global system instances
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r--src/yuzu/bootmanager.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 54c4e2142..8d7ab8c2e 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -34,13 +34,14 @@ enum class MouseButton;
namespace VideoCore {
enum class LoadCallbackStage;
-}
+class RendererBase;
+} // namespace VideoCore
class EmuThread final : public QThread {
Q_OBJECT
public:
- explicit EmuThread();
+ explicit EmuThread(Core::System& system_);
~EmuThread() override;
/**
@@ -101,6 +102,7 @@ private:
std::condition_variable_any running_cv;
Common::Event running_wait{};
std::atomic_bool running_guard{false};
+ Core::System& system;
signals:
/**
@@ -131,7 +133,8 @@ class GRenderWindow : public QWidget, public Core::Frontend::EmuWindow {
public:
explicit GRenderWindow(GMainWindow* parent, EmuThread* emu_thread_,
- std::shared_ptr<InputCommon::InputSubsystem> input_subsystem_);
+ std::shared_ptr<InputCommon::InputSubsystem> input_subsystem_,
+ Core::System& system_);
~GRenderWindow() override;
// EmuWindow implementation.
@@ -232,6 +235,8 @@ private:
std::array<std::size_t, 16> touch_ids{};
+ Core::System& system;
+
protected:
void showEvent(QShowEvent* event) override;
bool eventFilter(QObject* object, QEvent* event) override;