start adding auto loading for remap files

This commit is contained in:
radius 2015-04-05 14:06:23 -05:00
parent d4c52008a0
commit 9b2ee5daaf
2 changed files with 25 additions and 0 deletions

View file

@ -1742,6 +1742,21 @@ bool config_load_override(void)
return true; /* only means no errors were caught */
}
/**
* config_load_remap:
*
* Tries to append game-specific and core-specific remap files.
*
* This function only has an effect if a game-specific or core-specific
* configuration file exists at respective locations.
*
* core-specific: $REMAP_DIR/$CORE_NAME/$CORE_NAME.cfg
* game-specific: $REMAP_DIR/$CORE_NAME/$GAME_NAME.cfg
*
* Returns: false if there was an error.
*/
bool config_load_remap(void);
static void parse_config_file(void)
{
global_t *global = global_get_ptr();

View file

@ -412,6 +412,16 @@ void config_load(void);
*/
bool config_load_override(void);
/**
* config_load_remap:
*
* Tries to append game-specific and core-specific remap files.
*
* Returns: false if there was an error.
*
*/
bool config_load_remap(void);
/**
* config_save_keybinds_file:
* @path : Path that shall be written to.