diff options
author | aliaspider | 2015-11-04 18:17:04 +0100 |
---|---|---|
committer | aliaspider | 2015-11-04 18:17:04 +0100 |
commit | d2100979fd519b40c61dbdc6808120755513c88a (patch) | |
tree | 44df448bc43815273f6ceb8a8d33aab6291eb80f /src/config.c | |
parent | 0e70c7f861ed41b86be891882d08cd0fa0530d55 (diff) | |
download | snes9x2002-d2100979fd519b40c61dbdc6808120755513c88a.tar.gz snes9x2002-d2100979fd519b40c61dbdc6808120755513c88a.tar.bz2 snes9x2002-d2100979fd519b40c61dbdc6808120755513c88a.zip |
cleanups
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/config.c b/src/config.c deleted file mode 100644 index 174ef58..0000000 --- a/src/config.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <stdio.h> -#include "minIni.h" -#include "menu.h" -#include "port.h" -#include "config.h" - -static char *cfgEntry_lastLoaded = "last_loaded"; -static char *cfgEntry_theme = "theme"; -static char *cfgFile = "config.ini"; -static char *cfgSection_general = "general"; - -void getConfigValue(unsigned int value, char *buffer, int bfsz) { - char fp_cfgFile[_MAX_PATH]; - sprintf(fp_cfgFile, "%s/%s", snesOptionsDir, cfgFile); - - switch(value) { - case CONFIG_LASTLOADED: - ini_gets(cfgSection_general, cfgEntry_lastLoaded, "\0", buffer, bfsz, fp_cfgFile); - break; - case CONFIG_THEME: - ini_gets(cfgSection_general, cfgEntry_theme, "default", buffer, bfsz, fp_cfgFile); - break; - } -} - -void setConfigValue(unsigned int value, char *ll) { - char fp_cfgFile[_MAX_PATH]; - sprintf(fp_cfgFile, "%s/%s", snesOptionsDir, cfgFile); - - switch(value) { - case CONFIG_LASTLOADED: - ini_puts(cfgSection_general, cfgEntry_lastLoaded, ll, fp_cfgFile); - break; - case CONFIG_THEME: - ini_puts(cfgSection_general, cfgEntry_theme, ll, fp_cfgFile); - break; - } -} - |