summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua_core.c b/src/lua_core.c
index 633cb8b..6d89777 100644
--- a/src/lua_core.c
+++ b/src/lua_core.c
@@ -1160,10 +1160,10 @@ bool luaCallMain() {
snprintf( path, STRING_LEN, "main" );
}
#else
- snprintf( path, STRING_LEN, "%smain.lua", state->exePath );
+ snprintf( path, STRING_LEN, "%smain.lua", state->basePath );
/* Alternatively look for main. Could be precompiled binary file. */
if ( !FileExists( path ) ) {
- snprintf( path, STRING_LEN, "%smain", state->exePath );
+ snprintf( path, STRING_LEN, "%smain", state->basePath );
}
#endif
luaL_dofile( L, path );