rxi / lurker

Auto-swaps changed Lua files in a running LÖVE project
MIT License
282 stars 28 forks source link

Add a mechanism to stop a hotswap from occurring. #5

Closed shakesoda closed 9 years ago

shakesoda commented 9 years ago

This comes in handy when certain files need to be swapped with some other mechanism (for example - files which must be loaded into a specific environment).

To stop a swap, return true from lurker.preswap. Does not break any existing usage of preswap.

rxi commented 9 years ago

Looks good, thanks.