mirror of
https://github.com/kepler155c/opus
synced 2026-01-05 22:49:05 +00:00
major directory reorganize
This commit is contained in:
@@ -3,10 +3,10 @@ local Util = require('util')
|
||||
local Config = { }
|
||||
|
||||
Config.load = function(fname, data)
|
||||
local filename = '/config/' .. fname
|
||||
local filename = 'usr/config/' .. fname
|
||||
|
||||
if not fs.exists('/config') then
|
||||
fs.makeDir('/config')
|
||||
if not fs.exists('usr/config') then
|
||||
fs.makeDir('usr/config')
|
||||
end
|
||||
|
||||
if not fs.exists(filename) then
|
||||
@@ -17,7 +17,7 @@ Config.load = function(fname, data)
|
||||
end
|
||||
|
||||
Config.update = function(fname, data)
|
||||
local filename = '/config/' .. fname
|
||||
local filename = 'usr/config/' .. fname
|
||||
Util.writeTable(filename, data)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user