mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-31 19:29:11 +00:00
Made mainDir path relative to main file
This commit is contained in:
parent
e58d3515d1
commit
ea8bbd18fc
@ -1,7 +1,11 @@
|
|||||||
local scr_x, scr_y = term.getSize()
|
local scr_x, scr_y = term.getSize()
|
||||||
local keysDown, miceDown = {}, {}
|
local keysDown, miceDown = {}, {}
|
||||||
|
|
||||||
local config = {mainDir = "ccbn-data"}
|
local useAbsoluteMainDir = false
|
||||||
|
|
||||||
|
local config = {
|
||||||
|
mainDir = useAbsoluteMainDir and "ccbn-data" or fs.combine(fs.getDir(shell.getRunningProgram()), "ccbn-data")
|
||||||
|
}
|
||||||
config.chipDir = fs.combine(config.mainDir, "chipdata")
|
config.chipDir = fs.combine(config.mainDir, "chipdata")
|
||||||
config.objectDir = fs.combine(config.mainDir, "objectdata")
|
config.objectDir = fs.combine(config.mainDir, "objectdata")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user