Change path for /etc config.
This commit is contained in:
parent
db3ec95ee5
commit
b1a7a11dfc
1
Makefile
1
Makefile
|
@ -59,6 +59,7 @@ ssnes: $(OBJ)
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
install -m755 $(TARGET) $(PREFIX)/bin
|
install -m755 $(TARGET) $(PREFIX)/bin
|
||||||
|
install -m644 ssnes.cfg /etc/ssnes.cfg
|
||||||
|
|
||||||
uninstall: $(TARGET)
|
uninstall: $(TARGET)
|
||||||
rm -rf $(PREFIX)/bin/$(TARGET)
|
rm -rf $(PREFIX)/bin/$(TARGET)
|
||||||
|
|
|
@ -128,8 +128,8 @@ void parse_config(void)
|
||||||
strcat(conf_path, "/.ssnesrc");
|
strcat(conf_path, "/.ssnesrc");
|
||||||
conf = config_file_new(conf_path);
|
conf = config_file_new(conf_path);
|
||||||
}
|
}
|
||||||
else // Try /etc/ssnes.conf as a final test ...
|
else // Try /etc/ssnes.cfg as a final test ...
|
||||||
conf = config_file_new("/etc/ssnes.conf");
|
conf = config_file_new("/etc/ssnes.cfg");
|
||||||
}
|
}
|
||||||
|
|
||||||
set_defaults();
|
set_defaults();
|
||||||
|
|
Loading…
Reference in New Issue