summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 0e4f7ddd..284eca97 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -22,9 +22,15 @@ local function updateConfig()
config.setSource 'path'
log.debug('load config from local', CONFIGPATH)
else
- new = cfgLoader.loadClientConfig()
- config.setSource 'client'
- log.debug('load config from client')
+ new = cfgLoader.loadRCConfig('.luarc.json')
+ if new then
+ config.setSource 'luarc'
+ log.debug('load config from luarc')
+ else
+ new = cfgLoader.loadClientConfig()
+ config.setSource 'client'
+ log.debug('load config from client')
+ end
end
if not new then
log.warn('load config failed!')