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(
111111std::unique_ptr<ll::memory::HookRegistrar<PatchDelayImportHook>> hook{};
112112
113113bool initNodeJs () {
114- if (lse::LegacyScriptEngine::getInstance ().getConfig ().fixOldAddon .value_or (true )) {
114+ if (lse::LegacyScriptEngine::getInstance ().getConfig ().fixLegacyAddons .value_or (true )) {
115115 hook = std::make_unique<ll::memory::HookRegistrar<PatchDelayImportHook>>();
116116 }
117117 // Init NodeJs
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ struct Config {
88 int version = 1 ;
99 bool migratePlugins = true ;
1010#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 };
1213#endif
1314};
1415
You can’t perform that action at this time.
0 commit comments