From b8f60518c57f0189771b163e67ff6ab50552a3d5 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Thu, 14 Mar 2024 08:18:33 -0500 Subject: [PATCH] VideoCommon: update system to add graphics mod system manager --- Source/Core/Core/System.cpp | 6 ++++++ Source/Core/Core/System.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Source/Core/Core/System.cpp b/Source/Core/Core/System.cpp index cb05076132..0c7c3f2e8d 100644 --- a/Source/Core/Core/System.cpp +++ b/Source/Core/Core/System.cpp @@ -37,6 +37,7 @@ #include "VideoCommon/Fifo.h" #include "VideoCommon/GeometryShaderManager.h" #include "VideoCommon/GraphicsModEditor/EditorMain.h" +#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" #include "VideoCommon/VertexShaderManager.h" @@ -100,6 +101,7 @@ struct System::Impl FifoRecorder m_fifo_recorder; Movie::MovieManager m_movie; GraphicsModEditor::EditorMain m_graphics_mod_editor; + GraphicsModSystem::Runtime::GraphicsModManager m_graphics_mod_manager; }; System::System() : m_impl{std::make_unique(*this)} @@ -339,4 +341,8 @@ GraphicsModEditor::EditorMain& System::GetGraphicsModEditor() const { return m_impl->m_graphics_mod_editor; } +GraphicsModSystem::Runtime::GraphicsModManager& System::GetGraphicsModManager() const +{ + return m_impl->m_graphics_mod_manager; +} } // namespace Core diff --git a/Source/Core/Core/System.h b/Source/Core/Core/System.h index 340edb6093..dc57de303c 100644 --- a/Source/Core/Core/System.h +++ b/Source/Core/Core/System.h @@ -57,6 +57,10 @@ namespace GraphicsModEditor { class EditorMain; } +namespace GraphicsModSystem::Runtime +{ +class GraphicsModManager; +} namespace IOS::HLE { class EmulationKernel; @@ -199,6 +203,7 @@ public: VideoInterface::VideoInterfaceManager& GetVideoInterface() const; VideoCommon::CustomAssetLoader& GetCustomAssetLoader() const; GraphicsModEditor::EditorMain& GetGraphicsModEditor() const; + GraphicsModSystem::Runtime::GraphicsModManager& GetGraphicsModManager() const; private: System();