Forgot two instances of SYSCONF_INSTALL_DIR
This commit is contained in:
parent
c7386503c4
commit
87ee8c700a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue