diff options
Diffstat (limited to 'overrides.h')
-rw-r--r-- | overrides.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/overrides.h b/overrides.h new file mode 100644 index 0000000..cba4308 --- /dev/null +++ b/overrides.h @@ -0,0 +1,37 @@ +#ifndef _OVERRIDES_H__ +#define _OVERRIDES_H__ + +#include "libpicofe/menu.h" +#include "libretro.h" + +struct core_override_option { + const char *key; + const char *desc; + const char *info; + const bool blocked; + const char *default_value; + const char *retro_var_value; + struct retro_core_option_value options[RETRO_NUM_CORE_OPTION_VALUES_MAX]; +}; + +struct core_override_fast_forward { + const char *type_key; + const char *type_value; + const char *interval_key; + const char *interval_value; +}; + +struct core_override { + const char *core_name; + const struct core_override_fast_forward *fast_forward; + me_bind_action* actions; + const size_t action_size; + const struct core_override_option* options; +}; + +#define CORE_OVERRIDE(override, key, fallback) ((override && override->key) ? (override->key) : (fallback)) + +const struct core_override *get_overrides(void); +void set_overrides(const char *core_name); + +#endif |