Path check autoexec.lua

This commit is contained in:
Agent X 2023-12-06 21:06:24 -05:00
parent 3a18f41637
commit ae3271d98a
1 changed files with 3 additions and 1 deletions

View File

@ -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
}