This commit is contained in:
Igor Timofeev
2017-01-15 01:37:48 +03:00
parent 815002ff61
commit 7832b06ba3
6 changed files with 38 additions and 28 deletions

View File

@@ -1178,8 +1178,6 @@ function ecs.newFile(path)
local inputs = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Новый файл"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, ""}, {"EmptyLine"}, {"Button", {0xbbbbbb, 0xffffff, "OK"}})
if ecs.checkName(inputs[1], path) then
fs.makeDirectory(path)
local file = io.open(path .. inputs[1], "w"); file:write(""); file:close()
local MineOSCore = require("MineOSCore")
MineOSCore.safeLaunch(MineOSCore.paths.applications .. "/MineCode IDE.app/MineCode IDE.lua", "open", path .. inputs[1])
end