Core: add GraphicsModEditor::EditorMain to System

This commit is contained in:
iwubcode 2023-07-23 13:27:02 -05:00
parent 4d3f247cc3
commit d98fa316cf
2 changed files with 12 additions and 0 deletions

View file

@ -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<Impl>(*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

View file

@ -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();