X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fconfig.c;h=3ef1387bb6d7b21aedf85e2c4bf3571010bc8ed8;hb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;hp=3794cee389a8743ac83392e3fbbdb2219564696e;hpb=67b7b971a043ac16e0c5205fc7dd304440e2924d;p=picodrive.git diff --git a/platform/common/config.c b/platform/common/config.c index 3794cee..3ef1387 100644 --- a/platform/common/config.c +++ b/platform/common/config.c @@ -1,6 +1,9 @@ /* * Human-readable config file management for PicoDrive - * (c) notaz, 2008 + * (C) notaz, 2008-2010 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. */ #include @@ -9,16 +12,17 @@ #ifdef __EPOC32__ #include #endif + +#include "../libpicofe/input.h" +#include "../libpicofe/plat.h" +#include "../libpicofe/lprintf.h" #include "config.h" -#include "plat.h" -#include "input.h" -#include "lprintf.h" static char *mystrip(char *str); #ifndef _MSC_VER -#include "menu.h" +#include "menu_pico.h" #include "emu.h" #include @@ -756,7 +760,6 @@ int config_readsect(const char *fname, const char *section) keys_encountered = 0; memset(input_dev_map, 0xff, sizeof(input_dev_map)); - in_config_start(); while (!feof(f)) { ret = config_get_var_val(f, line, sizeof(line), &var, &val); @@ -765,7 +768,6 @@ int config_readsect(const char *fname, const char *section) parse(var, val); } - in_config_end(); fclose(f); return 0;