File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ LL_STATIC_HOOK(
111
111
std::unique_ptr<ll::memory::HookRegistrar<PatchDelayImportHook>> hook{};
112
112
113
113
bool initNodeJs () {
114
- if (lse::LegacyScriptEngine::getInstance ().getConfig ().fixOldAddon .value_or (true )) {
114
+ if (lse::LegacyScriptEngine::getInstance ().getConfig ().fixLegacyAddons .value_or (true )) {
115
115
hook = std::make_unique<ll::memory::HookRegistrar<PatchDelayImportHook>>();
116
116
}
117
117
// Init NodeJs
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ struct Config {
8
8
int version = 1 ;
9
9
bool migratePlugins = true ;
10
10
#ifdef LSE_BACKEND_NODEJS
11
- std::optional<bool > fixOldAddon{std::nullopt};
11
+ // fix addons that build with node-gyp version < 11.1.0, default: true
12
+ std::optional<bool > fixLegacyAddons{std::nullopt};
12
13
#endif
13
14
};
14
15
You can’t perform that action at this time.
0 commit comments