mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-16 07:10:32 +01:00
Remove DIR_DELIM
This commit is contained in:
parent
85cf4c4875
commit
f4a4200e88
|
@ -17,7 +17,6 @@ max_line_length = 200
|
|||
read_globals = {
|
||||
"default",
|
||||
"digiline",
|
||||
"DIR_DELIM",
|
||||
"doors",
|
||||
"dump",
|
||||
"jit",
|
||||
|
|
|
@ -11,4 +11,4 @@ local old_forceloaded_blocks = mesecon.file2table("mesecon_forceloaded")
|
|||
for hash, _ in pairs(old_forceloaded_blocks) do
|
||||
minetest.forceload_free_block(unhash_blockpos(hash))
|
||||
end
|
||||
os.remove(minetest.get_worldpath()..DIR_DELIM.."mesecon_forceloaded")
|
||||
os.remove(minetest.get_worldpath().."/mesecon_forceloaded")
|
||||
|
|
|
@ -286,7 +286,7 @@ end
|
|||
-- File writing / reading utilities
|
||||
local wpath = minetest.get_worldpath()
|
||||
function mesecon.file2table(filename)
|
||||
local f = io.open(wpath..DIR_DELIM..filename, "r")
|
||||
local f = io.open(wpath.."/"..filename, "r")
|
||||
if f == nil then return {} end
|
||||
local t = f:read("*all")
|
||||
f:close()
|
||||
|
@ -295,7 +295,7 @@ function mesecon.file2table(filename)
|
|||
end
|
||||
|
||||
function mesecon.table2file(filename, table)
|
||||
local f = io.open(wpath..DIR_DELIM..filename, "w")
|
||||
local f = io.open(wpath.."/"..filename, "w")
|
||||
f:write(minetest.serialize(table))
|
||||
f:close()
|
||||
end
|
||||
|
|
|
@ -480,4 +480,4 @@ minetest.register_craft({
|
|||
|
||||
|
||||
-- load legacy code
|
||||
dofile(minetest.get_modpath("mesecons_pistons")..DIR_DELIM.."legacy.lua")
|
||||
dofile(minetest.get_modpath("mesecons_pistons").."/legacy.lua")
|
||||
|
|
Loading…
Reference in New Issue
Block a user