We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c792951 commit bec511cCopy full SHA for bec511c
src/obfuscator/pipeline.lua
@@ -80,13 +80,16 @@ function Pipeline:new(settings)
80
end
81
82
function Pipeline:fromConfig(config)
83
+ config = config or {};
84
local pipeline = Pipeline:new({
- LuaVersion = config.LuaVersion;
85
- PrettyPrint = config.PrettyPrint;
86
- VarNamePrefix = config.VarNamePrefix;
87
- Seed = config.Seed;
+ LuaVersion = config.LuaVersion or LuaVersion.Lua51;
+ PrettyPrint = config.PrettyPrint or false;
+ VarNamePrefix = config.VarNamePrefix or "";
88
+ Seed = config.Seed or 0;
89
});
90
91
+ pipeline:setNameGenerator(config.NameGenerator or "MangledShuffled")
92
+
93
-- Add all Steps defined in Config
94
local steps = config.Steps or {};
95
for i, step in ipairs(steps) do
0 commit comments