Skip to content

Commit

Permalink
更新插件支持
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed May 24, 2018
1 parent 858bfaa commit aca9600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions w3x2lni/plugin/本地脚本.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function reduce_jass(w2l, name)
end

function mt:on_full(w2l)
if w2l.config.mode == 'obj' then
if w2l.setting.mode == 'obj' then
local file_save = w2l.file_save
function w2l:file_save(type, name, buf)
if type == 'scripts' and name ~= 'blizzard.j' and name ~= 'common.j' then
Expand All @@ -55,7 +55,7 @@ function mt:on_full(w2l)
inject_jass(w2l, 'scripts/war3map.j')
end

if w2l.config.mode == 'lni' then
if w2l.setting.mode == 'lni' then
w2l:file_remove('map', 'lua/currentpath.lua')
reduce_jass(w2l, 'war3map.j')
reduce_jass(w2l, 'scripts/war3map.j')
Expand Down
2 changes: 1 addition & 1 deletion w3x2lni/plugin/模型加密.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ end

function mt:on_full(w2l_)
w2l = w2l_
if w2l.config.mode ~= 'slk' then
if w2l.setting.mode ~= 'slk' then
return
end
encrypt_jasses()
Expand Down
4 changes: 2 additions & 2 deletions w3x2lni/plugin/资源保护.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mt.info = {
}

function mt:on_full(w2l)
if w2l.input_mode == 'lni' and (w2l.config.mode == 'obj' or w2l.config.mode == 'slk') then
if w2l.input_mode == 'lni' and (w2l.setting.mode == 'obj' or w2l.setting.mode == 'slk') then
if fs.exists(input / 'resource') then
return
end
Expand All @@ -28,7 +28,7 @@ function mt:on_full(w2l)
end
end
end
if w2l.config.mode == 'lni' then
if w2l.setting.mode == 'lni' then
local file_save = w2l.file_save
function w2l:file_save(type, name, buf)
if type == 'resource' or type == 'sound' then
Expand Down

0 comments on commit aca9600

Please sign in to comment.