mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-06 11:12:40 +01:00
Update Configurator.lua
This commit is contained in:
parent
477687599a
commit
90e73f5a93
@ -212,20 +212,19 @@ end
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
|
||||
--Рисуем стадии
|
||||
stage1()
|
||||
local users = stage2()
|
||||
local background, foreground = stage3()
|
||||
stage5()
|
||||
|
||||
local path = "System/OS/Users.cfg"
|
||||
fs.remove(path)
|
||||
fs.makeDirectory(fs.path(path))
|
||||
local file = io.open(path, "w")
|
||||
for _,val in pairs(users) do
|
||||
file:write(val, "\n")
|
||||
end
|
||||
file:close()
|
||||
--Сохраняем юзверей в файл
|
||||
config.append("System/OS/Users.cfg", table.unpack(users))
|
||||
|
||||
--Сохраняем цвета в конфиг ОС
|
||||
config.append("System/OS/OS.cfg", background, foreground)
|
||||
|
||||
--Рисуем старые пиксели
|
||||
ecs.drawOldPixels(oldPixels)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user