Make keybind loader public.

This commit is contained in:
Themaister 2012-02-13 19:20:24 +01:00
parent 77e55bb577
commit 78136e0191
2 changed files with 4 additions and 6 deletions

View File

@ -400,7 +400,9 @@ void config_load(void);
void config_set_defaults(void);
#ifdef HAVE_CONFIGFILE
#include "conf/config_file.h"
bool config_load_file(const char *path);
void config_read_keybinds(config_file_t *conf);
#endif
void ssnes_game_reset(void);

View File

@ -36,10 +36,6 @@ struct global g_extern;
struct console_settings g_console;
#endif
#ifdef HAVE_CONFIGFILE
static void read_keybinds(config_file_t *conf);
#endif
void config_set_defaults(void)
{
const char *def_video = NULL;
@ -499,7 +495,7 @@ bool config_load_file(const char *path)
SSNES_WARN("savestate_directory is not a directory, ignoring ...\n");
}
read_keybinds(conf);
config_read_keybinds(conf);
config_file_free(conf);
return true;
@ -776,7 +772,7 @@ static void read_keybinds_player(config_file_t *conf, unsigned player)
}
}
static void read_keybinds(config_file_t *conf)
void config_read_keybinds(config_file_t *conf)
{
for (unsigned i = 0; i < MAX_PLAYERS; i++)
read_keybinds_player(conf, i);