[UWP] expand custom.ini to absolute path, prevent crashing

This commit is contained in:
driver1998 2019-12-05 16:23:35 +08:00 committed by GH Cao
parent 004d782323
commit 0f924bd083

View File

@ -2259,6 +2259,10 @@ void dir_check_defaults(void)
*/
#if defined(ORBIS) || defined(ANDROID)
if (path_is_valid("host0:app/custom.ini"))
#elif defined(__WINRT__)
char path[MAX_PATH];
fill_pathname_expand_special(path, "~\\custom.ini", MAX_PATH);
if (path_is_valid(path))
#else
if (path_is_valid("custom.ini"))
#endif