Skip to content

Commit 124e6ad

Browse files
committed
chore: rename fixOldAddon config
1 parent f3a3664 commit 124e6ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/legacy/main/NodeJsHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ LL_STATIC_HOOK(
111111
std::unique_ptr<ll::memory::HookRegistrar<PatchDelayImportHook>> hook{};
112112

113113
bool 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

src/lse/Config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)