mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
mpvcore/path: Fix non-MinGW builds
Well that was dumb.
This commit is contained in:
parent
71f287c9c0
commit
be96a25dad
@ -78,9 +78,9 @@ char *mp_find_config_file(const char *filename)
|
||||
char *mp_find_user_config_file(const char *filename)
|
||||
{
|
||||
char *homedir = NULL, *buff = NULL;
|
||||
static char *homepath = NULL;
|
||||
#ifdef __MINGW32__
|
||||
char *config_dir = "mpv";
|
||||
static char *homepath = NULL;
|
||||
|
||||
if (homepath == NULL) {
|
||||
char buf[MAX_PATH];
|
||||
@ -92,7 +92,10 @@ char *mp_find_user_config_file(const char *filename)
|
||||
}
|
||||
#else
|
||||
char *config_dir = ".mpv";
|
||||
static char *homepath = getenv("HOME");
|
||||
|
||||
if (homepath == NULL) {
|
||||
homepath = getenv("HOME");
|
||||
}
|
||||
#endif
|
||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
char *temp = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user