Common: Make HookableEvent use non-static data.

Co-authored-by: Dentomologist <[email protected]>
This commit is contained in:
Jordan Woyak
2025-11-02 17:30:43 -06:00
co-authored by Dentomologist
parent 9c28f19e56
commit f289b06e0d
30 changed files with 263 additions and 175 deletions
+4
View File
@@ -50,6 +50,7 @@
#include "UICommon/DiscordPresence.h"
#include "VideoCommon/Statistics.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoConfig.h"
@@ -138,9 +139,11 @@ void Init()
s_config_changed_callback_id = Config::AddConfigChangedCallback(config_changed_callback);
Config::AddLayer(ConfigLoaders::GenerateBaseConfigLoader());
SConfig::Init();
g_Config.Init();
Discord::Init();
Common::Log::LogManager::Init();
VideoBackendBase::ActivateBackend(Config::Get(Config::MAIN_GFX_BACKEND));
Statistics::Init();
RefreshConfig();
}
@@ -149,6 +152,7 @@ void Shutdown()
{
Config::RemoveConfigChangedCallback(s_config_changed_callback_id);
Statistics::Shutdown();
GCAdapter::Shutdown();
WiimoteReal::Shutdown();
Common::Log::LogManager::Shutdown();