Fix npc_data directory creation on Windows
This commit is contained in:
parent
702916430a
commit
b75306baed
@ -25,8 +25,7 @@ if input then
|
||||
index = minetest.deserialize(input:read('*all'))
|
||||
io.close(input)
|
||||
else
|
||||
local dir = string.gsub(NPCF_DATADIR, "/", package.config:sub(1,1))
|
||||
os.execute("mkdir "..NPCF_DATADIR)
|
||||
os.execute("mkdir \""..NPCF_DATADIR.."\"")
|
||||
local output = io.open(NPCF_DATADIR.."/index.txt", 'w')
|
||||
if output then
|
||||
output:write(minetest.serialize(index))
|
||||
|
Loading…
x
Reference in New Issue
Block a user