Common: Make HookableEvent use non-static data.

Co-authored-by: Dentomologist <[email protected]>
This commit is contained in:
Jordan WoyakandDentomologist committed 2025-11-02 17:30:43 -06:00
1 parent 9c28f19e56
commit f289b06e0d
30 files changed
+263 -175

No files matched your search

+13
View File
@@ -59,6 +59,9 @@ struct System::Impl
{
}
// Built first since other constructors may register hooks right away.
VideoEvents m_video_events;
std::unique_ptr<SoundStream> m_sound_stream;
bool m_sound_stream_running = false;
bool m_audio_dump_started = false;
@@ -339,4 +342,14 @@ VideoCommon::CustomResourceManager& System::GetCustomResourceManager() const
{
return m_impl->m_custom_resource_manager;
}
VideoEvents& System::GetVideoEvents() const
{
return m_impl->m_video_events;
}
} // namespace Core
VideoEvents& GetVideoEvents()
{
return Core::System::GetInstance().GetVideoEvents();
}