diff options
| author | jussi | 2024-05-20 15:45:31 +0300 |
|---|---|---|
| committer | jussi | 2024-05-20 15:45:31 +0300 |
| commit | 9edaf7a47b02bd351c400f0c6aec517884449551 (patch) | |
| tree | cf7019c08a033cb0b3739cdbcbb40b7c55fbad89 /src/lua_core.c | |
| parent | e84be852546aecf3e151fd8bb92db88a068c1ea1 (diff) | |
| download | reilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.tar.gz reilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.tar.bz2 reilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.zip | |
Use GetApplicationDirectory instead of GetWorkingDirectory for basePath if no path argument given.
Diffstat (limited to 'src/lua_core.c')
| -rw-r--r-- | src/lua_core.c | 4 |
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 ); |
