Load config from vita-specific paths

This commit is contained in:
Ivan Epifanov
2021-01-27 17:46:26 +03:00
parent 6761218e51
commit e4a60406da
+23
View File
@@ -420,6 +420,29 @@ void ReadALConfig(void)
alstr_reset(&ppath);
}
#elif defined __vita__
void ReadALConfig(void)
{
const char* config_paths[] =
{
"app0:/alsoft.conf",
"ux0:/data/openal/alsoft.conf"
};
FILE* f;
unsigned int i;
for(i = 0; i < sizeof(config_paths) / sizeof(*config_paths); ++i)
{
TRACE("Loading config %s...\n", config_paths[i]);
f = al_fopen(config_paths[i], "r");
if(f)
{
LoadConfigFromFile(f);
fclose(f);
break;
}
}
}
#else
void ReadALConfig(void)
{