mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
VideoCommon: Initialize editor in ui....
This commit is contained in:
parent
2225549334
commit
53b4e989ce
1 changed files with 8 additions and 0 deletions
|
@ -104,11 +104,19 @@ bool OnScreenUI::Initialize(u32 width, u32 height, float scale)
|
||||||
m_ready = true;
|
m_ready = true;
|
||||||
BeginImGuiFrameUnlocked(width, height); // lock is already held
|
BeginImGuiFrameUnlocked(width, height); // lock is already held
|
||||||
|
|
||||||
|
auto& system = Core::System::GetInstance();
|
||||||
|
auto& graphics_mod_editor = system.GetGraphicsModEditor();
|
||||||
|
graphics_mod_editor.Initialize();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
OnScreenUI::~OnScreenUI()
|
OnScreenUI::~OnScreenUI()
|
||||||
{
|
{
|
||||||
|
auto& system = Core::System::GetInstance();
|
||||||
|
auto& graphics_mod_editor = system.GetGraphicsModEditor();
|
||||||
|
graphics_mod_editor.Shutdown();
|
||||||
|
|
||||||
std::unique_lock<std::mutex> imgui_lock(m_imgui_mutex);
|
std::unique_lock<std::mutex> imgui_lock(m_imgui_mutex);
|
||||||
|
|
||||||
ImGui::EndFrame();
|
ImGui::EndFrame();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue