From 8869adfb33e0c0109dad606331fe239b1af6e75f Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 13 Dec 2025 12:42:58 -0600 Subject: 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* --- controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controller.lua') 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" -- cgit v1.2.3