mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 11:02:18 +00:00
Moved hotswap code to lurker.hotswapfile()
This commit is contained in:
@@ -174,8 +174,7 @@ function lurker.exiterrorstate()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function lurker.scan()
|
function lurker.hotswapfile(f)
|
||||||
for _, f in pairs(lurker.getchanged()) do
|
|
||||||
lurker.print("Hotswapping '{1}'...", {f})
|
lurker.print("Hotswapping '{1}'...", {f})
|
||||||
if lurker.state == "error" then
|
if lurker.state == "error" then
|
||||||
lurker.exiterrorstate()
|
lurker.exiterrorstate()
|
||||||
@@ -193,7 +192,11 @@ function lurker.scan()
|
|||||||
if lurker.protected then
|
if lurker.protected then
|
||||||
lurker.updatewrappers()
|
lurker.updatewrappers()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function lurker.scan()
|
||||||
|
lume.each(lurker.getchanged(), lurker.hotswapfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user