mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
config: use the same signature for win32/OSX specific path functions
Seems like a good idea, even if it's basically unused (yet). Also document requirements on the functions (they're not obvious). OSX changes untested.
This commit is contained in:
@@ -58,7 +58,7 @@ static char *mp_get_win_app_dir(void *talloc_ctx)
|
||||
return talloc_asprintf(talloc_ctx, "%s/mpv", mp_to_utf8(talloc_ctx, w_appdir));
|
||||
}
|
||||
|
||||
void mp_add_win_config_dirs(struct mpv_global *global, char **dirs, int i)
|
||||
int mp_add_win_config_dirs(struct mpv_global *global, char **dirs, int i)
|
||||
{
|
||||
void *talloc_ctx = dirs;
|
||||
if ((dirs[i] = mp_get_win_exe_subdir(talloc_ctx)))
|
||||
@@ -67,4 +67,5 @@ void mp_add_win_config_dirs(struct mpv_global *global, char **dirs, int i)
|
||||
i++;
|
||||
if ((dirs[i] = mp_get_win_app_dir(talloc_ctx)))
|
||||
i++;
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user