From b1a7a11dfcd93b95a5ae4f446dd0de03f03f73bd Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 30 Dec 2010 03:42:31 +0100 Subject: [PATCH] Change path for /etc config. --- Makefile | 1 + settings.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 83f7d6b9cd..2fe33ca37d 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ ssnes: $(OBJ) install: $(TARGET) install -m755 $(TARGET) $(PREFIX)/bin + install -m644 ssnes.cfg /etc/ssnes.cfg uninstall: $(TARGET) rm -rf $(PREFIX)/bin/$(TARGET) diff --git a/settings.c b/settings.c index c0fde23a11..57988210ad 100644 --- a/settings.c +++ b/settings.c @@ -128,8 +128,8 @@ void parse_config(void) strcat(conf_path, "/.ssnesrc"); conf = config_file_new(conf_path); } - else // Try /etc/ssnes.conf as a final test ... - conf = config_file_new("/etc/ssnes.conf"); + else // Try /etc/ssnes.cfg as a final test ... + conf = config_file_new("/etc/ssnes.cfg"); } set_defaults();