Use GetApplicationDirectory instead of GetWorkingDirectory for basePath if no path argument given.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user