From ae3271d98aadb8e0280d3b53bfac19bf07a8de47 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:06:24 -0500 Subject: [PATCH] Path check autoexec.lua --- src/pc/lua/smlua.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pc/lua/smlua.c b/src/pc/lua/smlua.c index 06eefc5ec..7128d9956 100644 --- a/src/pc/lua/smlua.c +++ b/src/pc/lua/smlua.c @@ -291,7 +291,9 @@ void smlua_init(void) { #ifdef DEVELOPMENT // autoexec - smlua_exec_file("autoexec.lua"); + if (path_exists("autoexec.lua")) { + smlua_exec_file("autoexec.lua"); + } #endif }