aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dllmain.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-10-15 20:57:41 +0100
committerGitHub <noreply@github.com>2023-10-15 21:57:41 +0200
commit98af0dcbb45972d4af22ea0d26a3a2c518ea9b13 (patch)
tree0f56979e5ff44f19c3ff98358f6016bfda09fc4d /NorthstarDLL/dllmain.cpp
parentfb7b538c2fc772fa5fcbecc20593d5b3f4622a35 (diff)
downloadNorthstarLauncher-98af0dcbb45972d4af22ea0d26a3a2c518ea9b13.tar.gz
NorthstarLauncher-98af0dcbb45972d4af22ea0d26a3a2c518ea9b13.zip
Move plugin communication handler init out of plugin manager init (#581)
Plugin state requires this to be initialised even if `-noplugins` is passed, but if `-noplugins` is passed, it doesn't get initialised. Moving this to `dllmain` guarantees that it is initialised properly and prevents #580
Diffstat (limited to 'NorthstarDLL/dllmain.cpp')
-rw-r--r--NorthstarDLL/dllmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/dllmain.cpp b/NorthstarDLL/dllmain.cpp
index cfcc1a8c..1a80b3ed 100644
--- a/NorthstarDLL/dllmain.cpp
+++ b/NorthstarDLL/dllmain.cpp
@@ -5,6 +5,7 @@
#include "config/profile.h"
#include "plugins/plugin_abi.h"
#include "plugins/plugins.h"
+#include "plugins/pluginbackend.h"
#include "util/version.h"
#include "squirrel/squirrel.h"
#include "shared/gamepresence.h"
@@ -62,6 +63,7 @@ bool InitialiseNorthstar()
g_pGameStatePresence = new GameStatePresence();
g_pPluginManager = new PluginManager();
+ g_pPluginCommunicationhandler = new PluginCommunicationHandler();
g_pPluginManager->LoadPlugins();
InitialiseSquirrelManagers();