summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorjussi2024-05-20 15:45:31 +0300
committerjussi2024-05-20 15:45:31 +0300
commit9edaf7a47b02bd351c400f0c6aec517884449551 (patch)
treecf7019c08a033cb0b3739cdbcbb40b7c55fbad89 /src/core.c
parente84be852546aecf3e151fd8bb92db88a068c1ea1 (diff)
downloadreilua-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/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index a687b2a..2146510 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1591,7 +1591,7 @@ Return game directory (where main.lua is located)
- Success return string
*/
int lcoreGetBasePath( lua_State* L ) {
- lua_pushstring( L, state->exePath );
+ lua_pushstring( L, state->basePath );
return 1;
}