From 0d09e0c4bad995ad0059df4c7f48013213d58d98 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 23 Jul 2023 13:27:02 -0500 Subject: [PATCH] Core: add GraphicsModEditor::EditorMain to System --- Source/Core/Core/System.cpp | 7 +++++++ Source/Core/Core/System.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/Source/Core/Core/System.cpp b/Source/Core/Core/System.cpp index 0170c5fd11..3035b179a7 100644 --- a/Source/Core/Core/System.cpp +++ b/Source/Core/Core/System.cpp @@ -37,6 +37,7 @@ #include "VideoCommon/CommandProcessor.h" #include "VideoCommon/Fifo.h" #include "VideoCommon/GeometryShaderManager.h" +#include "VideoCommon/GraphicsModEditor/EditorMain.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/VertexShaderManager.h" @@ -100,6 +101,7 @@ struct System::Impl FifoPlayer m_fifo_player; FifoRecorder m_fifo_recorder; Movie::MovieManager m_movie; + GraphicsModEditor::EditorMain m_graphics_mod_editor; }; System::System() : m_impl{std::make_unique(*this)} @@ -339,4 +341,9 @@ VideoCommon::CustomResourceManager& System::GetCustomResourceManager() const { return m_impl->m_custom_resource_manager; } + +GraphicsModEditor::EditorMain& System::GetGraphicsModEditor() const +{ + return m_impl->m_graphics_mod_editor; +} } // namespace Core diff --git a/Source/Core/Core/System.h b/Source/Core/Core/System.h index 348f4fcb4a..fd7198b912 100644 --- a/Source/Core/Core/System.h +++ b/Source/Core/Core/System.h @@ -53,6 +53,10 @@ namespace GPFifo { class GPFifoManager; } +namespace GraphicsModEditor +{ +class EditorMain; +} namespace IOS::HLE { class EmulationKernel; @@ -198,6 +202,7 @@ public: XFStateManager& GetXFStateManager() const; VideoInterface::VideoInterfaceManager& GetVideoInterface() const; VideoCommon::CustomResourceManager& GetCustomResourceManager() const; + GraphicsModEditor::EditorMain& GetGraphicsModEditor() const; private: System();