mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Fixed Nanomachines.app crash
This commit is contained in:
parent
3de8915838
commit
24cc86a274
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
local GUI = require("GUI")
|
local GUI = require("GUI")
|
||||||
local screen = require("Screen")
|
local screen = require("Screen")
|
||||||
local fs = require("Filesystem")
|
|
||||||
local color = require("Color")
|
local color = require("Color")
|
||||||
local image = require("Image")
|
local image = require("Image")
|
||||||
local system = require("System")
|
local system = require("System")
|
||||||
local paths = require("Paths")
|
local paths = require("Paths")
|
||||||
local system = require("System")
|
local system = require("System")
|
||||||
local text = require("Text")
|
local text = require("Text")
|
||||||
|
local filesystem = require("Filesystem")
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -30,7 +30,8 @@ local config = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local configPath = paths.user.applicationData .. "Nanomachines/Config.cfg"
|
local configPath = paths.user.applicationData .. "Nanomachines/Config.cfg"
|
||||||
if fs.exists(configPath) then
|
|
||||||
|
if filesystem.exists(configPath) then
|
||||||
config = filesystem.readTable(configPath)
|
config = filesystem.readTable(configPath)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user