notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support multiple sound drivers
[picodrive.git]
/
platform
/
common
/
config.c
diff --git
a/platform/common/config.c
b/platform/common/config.c
index
3794cee
..
3ef1387
100644
(file)
--- a/
platform/common/config.c
+++ b/
platform/common/config.c
@@
-1,6
+1,9
@@
/*
* Human-readable config file management for PicoDrive
/*
* 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 <stdio.h>
*/
#include <stdio.h>
@@
-9,16
+12,17
@@
#ifdef __EPOC32__
#include <unistd.h>
#endif
#ifdef __EPOC32__
#include <unistd.h>
#endif
+
+#include "../libpicofe/input.h"
+#include "../libpicofe/plat.h"
+#include "../libpicofe/lprintf.h"
#include "config.h"
#include "config.h"
-#include "plat.h"
-#include "input.h"
-#include "lprintf.h"
static char *mystrip(char *str);
#ifndef _MSC_VER
static char *mystrip(char *str);
#ifndef _MSC_VER
-#include "menu.h"
+#include "menu
_pico
.h"
#include "emu.h"
#include <pico/pico.h>
#include "emu.h"
#include <pico/pico.h>
@@
-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));
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);
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);
}
parse(var, val);
}
- in_config_end();
fclose(f);
return 0;
fclose(f);
return 0;