Skip to content

Commit 51dc5e2

Browse files
committed
fix: fix missing plugin logger title
1 parent eff73b1 commit 51dc5e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lse/PluginManager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "Entry.h"
44
#include "Plugin.h"
55
#include "legacy/engine/EngineManager.h"
6+
#include "legacy/engine/EngineOwnData.h"
67

78
#include <ScriptX/ScriptX.h>
89
#include <exception>
@@ -54,6 +55,10 @@ auto PluginManager::load(ll::plugin::Manifest manifest) -> bool {
5455
try {
5556
script::EngineScope engineScope(scriptEngine);
5657

58+
// Set plugins's logger title
59+
ENGINE_OWN_DATA()->logger.title = manifest.name;
60+
ENGINE_OWN_DATA()->pluginName = manifest.name;
61+
5762
BindAPIs(&scriptEngine);
5863

5964
auto& self = getSelfPluginInstance();

0 commit comments

Comments
 (0)