aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/plugins
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2023-12-20 15:20:02 +0100
committerNorthstar <northstar@northstar.tf>2023-12-20 15:20:02 +0100
commit1e5c4a7f6a734352f802c82b293fe3b215e3a5b2 (patch)
treeb1a5484f3839e1b0c2a9169856a51c16cf255180 /NorthstarDLL/plugins
parent714282b52039b12225c8348ef7346d092676ffb1 (diff)
downloadNorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.tar.gz
NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.zip
Format project
Diffstat (limited to 'NorthstarDLL/plugins')
-rw-r--r--NorthstarDLL/plugins/pluginbackend.h6
-rw-r--r--NorthstarDLL/plugins/plugins.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/NorthstarDLL/plugins/pluginbackend.h b/NorthstarDLL/plugins/pluginbackend.h
index fc66a597..45cd42f3 100644
--- a/NorthstarDLL/plugins/pluginbackend.h
+++ b/NorthstarDLL/plugins/pluginbackend.h
@@ -17,7 +17,7 @@ union PluginRespondDataCallable
class PluginDataRequest
{
- public:
+public:
PluginDataRequestType type;
PluginRespondDataCallable func;
PluginDataRequest(PluginDataRequestType type, PluginRespondDataCallable func) : type(type), func(func) {}
@@ -25,11 +25,11 @@ class PluginDataRequest
class PluginCommunicationHandler
{
- public:
+public:
void RunFrame();
void PushRequest(PluginDataRequestType type, PluginRespondDataCallable func);
- public:
+public:
std::queue<PluginDataRequest> requestQueue = {};
std::mutex requestMutex;
diff --git a/NorthstarDLL/plugins/plugins.h b/NorthstarDLL/plugins/plugins.h
index d91b2811..4e841f27 100644
--- a/NorthstarDLL/plugins/plugins.h
+++ b/NorthstarDLL/plugins/plugins.h
@@ -5,7 +5,7 @@ const int IDR_RCDATA1 = 101;
class Plugin
{
- public:
+public:
std::string name;
std::string displayName;
std::string dependencyName;
@@ -23,7 +23,7 @@ class Plugin
bool run_on_client = false;
bool run_on_server = false;
- public:
+public:
PLUGIN_INIT_TYPE init;
PLUGIN_INIT_SQVM_TYPE init_sqvm_client;
PLUGIN_INIT_SQVM_TYPE init_sqvm_server;
@@ -37,10 +37,10 @@ class Plugin
class PluginManager
{
- public:
+public:
std::vector<Plugin> m_vLoadedPlugins;
- public:
+public:
bool LoadPlugins();
std::optional<Plugin> LoadPlugin(fs::path path, PluginInitFuncs* funcs, PluginNorthstarData* data);
@@ -52,7 +52,7 @@ class PluginManager
void RunFrame();
- private:
+private:
std::string pluginPath;
};