From 6fa042eda597f5e5d16d550cc7a1c9afaddb04c1 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 13 Jun 2018 06:08:32 +0200 Subject: [PATCH] fix preset failing to default --- config.lua | 2 +- main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index 4dacf7e..638217c 100644 --- a/config.lua +++ b/config.lua @@ -1,4 +1,4 @@ -preset = rawget(_G, 'preset') or 'ars' +local preset = rawget(_G, 'preset') or 'ars' local common_cfg = { -- read-only modes: diff --git a/main.lua b/main.lua index 0e94d08..e18e89c 100644 --- a/main.lua +++ b/main.lua @@ -2,7 +2,7 @@ local globalize = require("strict") -- configuration. -globalize{preset = arg} +globalize{preset = rawget(_G, arg)} local cfg = require("config") local gcfg = require("gameconfig")