diff options
| author | cheapie <no-email-for-you@example.com> | 2025-12-13 12:42:58 -0600 |
|---|---|---|
| committer | cheapie <no-email-for-you@example.com> | 2025-12-13 12:42:58 -0600 |
| commit | 8869adfb33e0c0109dad606331fe239b1af6e75f (patch) | |
| tree | 92adbf8d69f562d74993cad3fd8398b59baadd79 /controller.lua | |
| parent | aaeb74b01eb0602ec79974229feba004a09c86b5 (diff) | |
| download | celevator-8869adfb33e0c0109dad606331fe239b1af6e75f.tar celevator-8869adfb33e0c0109dad606331fe239b1af6e75f.tar.gz celevator-8869adfb33e0c0109dad606331fe239b1af6e75f.tar.bz2 celevator-8869adfb33e0c0109dad606331fe239b1af6e75f.tar.xz celevator-8869adfb33e0c0109dad606331fe239b1af6e75f.zip | |
Remove deprecated DIR_DELIM usage
Apparently "/" gets translated to the right path separator for the current OS. This seems to not be documented anywhere, but DIR_DELIM wasn't either, so... *shrug*
Diffstat (limited to 'controller.lua')
| -rw-r--r-- | controller.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller.lua b/controller.lua index d8fb873..bf351ef 100644 --- a/controller.lua +++ b/controller.lua @@ -6,7 +6,7 @@ celevator.controller.equeue = core.deserialize(celevator.storage:get_string("con celevator.controller.running = {} -local fw,err = loadfile(core.get_modpath("celevator")..DIR_DELIM.."controllerfw.lua") +local fw,err = loadfile(core.get_modpath("celevator").."/controllerfw.lua") if not fw then error(err) end core.register_chatcommand("celevator_reloadcontroller",{ @@ -14,7 +14,7 @@ core.register_chatcommand("celevator_reloadcontroller",{ description = "Reload celevator controller firmware from disk", privs = {server = true}, func = function() - local newfw,loaderr = loadfile(core.get_modpath("celevator")..DIR_DELIM.."controllerfw.lua") + local newfw,loaderr = loadfile(core.get_modpath("celevator").."/controllerfw.lua") if newfw then fw = newfw return true,"Firmware reloaded successfully" |
