Skip to content

Commit

Permalink
init default plugin color in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
uniboi authored Sep 16, 2024
1 parent 9fe5ed9 commit 451e4fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions primedev/plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Plugin::Plugin(std::string path)
(int)((logColor & IPluginId::COLOR_G_MASK) >> 8),
(int)((logColor & IPluginId::COLOR_B_MASK) >> 16));
}
else
{
m_logColor = NS::Colors::PLUGIN;
}

if (!name)
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/plugins/plugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Plugin
std::string m_location; // path of the dll
bool m_runOnServer;
bool m_runOnClient;
Color m_logColor = NS::Colors::PLUGIN;
Color m_logColor;

public:
HMODULE m_handle;
Expand Down

0 comments on commit 451e4fa

Please sign in to comment.