Forgot two instances of SYSCONF_INSTALL_DIR

This commit is contained in:
Mystro256 2016-12-09 23:33:19 -05:00
parent c7386503c4
commit 87ee8c700a
2 changed files with 3 additions and 3 deletions

View File

@ -696,7 +696,7 @@ const char* FindConfigFile(const char *name)
return path;
}
sprintf(path, "%s%c%s", SYSCONFDIR, FILE_SEP, name);
sprintf(path, "%s%c%s", SYSCONF_INSTALL_DIR, FILE_SEP, name);
if (FileExists(path))
{
return path;

View File

@ -422,8 +422,8 @@ FILE* sdlFindFile(const char* name)
if (f != NULL)
return f;
fprintf(stdout, "Searching system config directory: %s\n", SYSCONFDIR);
sprintf(path, "%s%c%s", SYSCONFDIR, FILE_SEP, name);
fprintf(stdout, "Searching system config directory: %s\n", SYSCONF_INSTALL_DIR);
sprintf(path, "%s%c%s", SYSCONF_INSTALL_DIR, FILE_SEP, name);
f = fopen(path, "r");
if (f != NULL)
return f;