Fix base path when compiling with unix cwd (#13631)

This commit is contained in:
Mats 2022-02-17 04:59:37 +01:00 committed by GitHub
parent 932c9b9926
commit e76da47b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1799,7 +1799,7 @@ static void frontend_unix_get_env(int *argc,
char base_path[PATH_MAX] = {0};
#if defined(RARCH_UNIX_CWD_ENV)
/* The entire path is zero initialized. */
base_path[0] = '.';
getcwd(base_path, sizeof(base_path));
#elif defined(DINGUX)
dingux_get_base_path(base_path, sizeof(base_path));
#else