From 9edaf7a47b02bd351c400f0c6aec517884449551 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 20 May 2024 15:45:31 +0300 Subject: Use GetApplicationDirectory instead of GetWorkingDirectory for basePath if no path argument given. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.c') 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; } -- cgit v1.2.3