From 4f3639fab62fa95f4bdc620b2e3500e717a0fcf3 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 25 Dec 2010 21:29:45 +0200 Subject: menu: add config save/load --- frontend/main.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'frontend/main.c') diff --git a/frontend/main.c b/frontend/main.c index 7e33f2e..36b6a6a 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -185,21 +185,7 @@ int main(int argc, char *argv[]) strcpy(Config.Cdr, "builtin_cdr"); strcpy(Config.Pad1, "builtin_pad"); strcpy(Config.Pad2, "builtin_pad"); - - // try to load config - // if the config file doesn't exist - if (LoadConfig() == -1) { - // Uh oh, no config file found, use some defaults - Config.PsxAuto = 1; - - // create & load default memcards if they don't exist - CreateMemcard("card1.mcd", Config.Mcd1); - CreateMemcard("card2.mcd", Config.Mcd2); - - LoadMcds(Config.Mcd1, Config.Mcd2); - - SaveConfig(); - } + Config.PsxAuto = 1; snprintf(Config.PatchesDir, sizeof(Config.PatchesDir), "." PATCHES_DIR); /* -- cgit v1.2.3