mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-12-17 09:26:42 +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()
|
||||||
@@ -194,6 +193,10 @@ function lurker.scan()
|
|||||||
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