From d98fa316cf500b152af67729a3ed75485e2bb881 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 695d5861fc..cb05076132 100644 --- a/Source/Core/Core/System.cpp +++ b/Source/Core/Core/System.cpp @@ -36,6 +36,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" @@ -98,6 +99,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)} @@ -332,4 +334,9 @@ VideoCommon::CustomAssetLoader& System::GetCustomAssetLoader() const { return m_impl->m_custom_asset_loader; } + +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 9ec8391ff0..340edb6093 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; @@ -194,6 +198,7 @@ public: XFStateManager& GetXFStateManager() const; VideoInterface::VideoInterfaceManager& GetVideoInterface() const; VideoCommon::CustomAssetLoader& GetCustomAssetLoader() const; + GraphicsModEditor::EditorMain& GetGraphicsModEditor() const; private: System();