From c1f731e5a11e8e0c15aec800033657bd1b4291eb Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 17 May 2020 16:58:32 +0100 Subject: [PATCH] Fixed EXEDIR having trailing slash --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 2069b89..a6ee197 100644 --- a/src/main.c +++ b/src/main.c @@ -120,7 +120,7 @@ int main(int argc, char **argv) { "xpcall(function()\n" " SCALE = tonumber(os.getenv(\"LITE_SCALE\")) or SCALE\n" " PATHSEP = package.config:sub(1, 1)\n" - " EXEDIR = EXEFILE:match(\"^(.-)[^/\\\\]*$\")" + " EXEDIR = EXEFILE:match(\"^(.+)[/\\\\].*$\")\n" " package.path = EXEDIR .. '/data/?.lua;' .. package.path\n" " package.path = EXEDIR .. '/data/?/init.lua;' .. package.path\n" " core = require('core')\n"