MineOS/lib/MineOSPaths.lua
Igor Timofeev 8709d846f5 Ну-ка
2017-09-25 23:51:59 +03:00

31 lines
1.4 KiB
Lua
Executable File

local filesystem = require("filesystem")
local MineOSPaths = {}
----------------------------------------------------------------------------------------------------------------
MineOSPaths.OS = "/MineOS/"
MineOSPaths.downloads = MineOSPaths.OS .. "Downloads/"
MineOSPaths.system = MineOSPaths.OS .. "System/"
MineOSPaths.applicationData = MineOSPaths.system .. "Application data/"
MineOSPaths.extensionAssociations = MineOSPaths.system .. "Extensions/"
MineOSPaths.localizationFiles = MineOSPaths.system .. "Localization/"
MineOSPaths.icons = MineOSPaths.system .. "Icons/"
MineOSPaths.applications = MineOSPaths.OS .. "Applications/"
MineOSPaths.pictures = MineOSPaths.OS .. "Pictures/"
MineOSPaths.desktop = MineOSPaths.OS .. "Desktop/"
MineOSPaths.applicationList = MineOSPaths.system .. "Applications.cfg"
MineOSPaths.trash = MineOSPaths.OS .. "Trash/"
MineOSPaths.properties = MineOSPaths.system .. "Properties.cfg"
MineOSPaths.editor = MineOSPaths.applications .. "/MineCode IDE.app/Main.lua"
MineOSPaths.explorer = MineOSPaths.applications .. "/Finder.app/Main.lua"
----------------------------------------------------------------------------------------------------------------
filesystem.makeDirectory(MineOSPaths.pictures)
filesystem.makeDirectory(MineOSPaths.applicationData)
filesystem.makeDirectory(MineOSPaths.trash)
----------------------------------------------------------------------------------------------------------------
return MineOSPaths