diff --git a/cheevos.c b/cheevos.c index f7b67c0f20..44e9386777 100644 --- a/cheevos.c +++ b/cheevos.c @@ -156,15 +156,6 @@ enum CHEEVOS_DIRTY_ALL = (1 << 9) - 1 }; -typedef struct -{ - unsigned size; - unsigned type; - int bank_id; - unsigned value; - unsigned previous; -} cheevos_var_t; - typedef struct { unsigned type; diff --git a/cheevos.h b/cheevos.h index 8642f7cc57..c5d3f529d3 100644 --- a/cheevos.h +++ b/cheevos.h @@ -48,6 +48,19 @@ bool cheevos_set_cheats(void); void cheevos_set_support_cheevos(bool state); + +typedef struct +{ + unsigned size; + unsigned type; + int bank_id; + unsigned value; + unsigned previous; +} cheevos_var_t; + +void cheevos_parse_guest_addr(cheevos_var_t *var, unsigned value); +uint8_t *cheevos_get_memory(const cheevos_var_t *var); + RETRO_END_DECLS #endif /* __RARCH_CHEEVOS_H */ diff --git a/command.c b/command.c index 675719b17a..c56fefa531 100644 --- a/command.c +++ b/command.c @@ -184,20 +184,6 @@ static bool command_set_shader(const char *arg) return video_driver_set_shader(type, arg); } -#ifdef HAVE_CHEEVOS -typedef struct -{ - unsigned size; - unsigned type; - int bank_id; - unsigned value; - unsigned previous; -} cheevos_var_t; - -void cheevos_parse_guest_addr(cheevos_var_t *var, unsigned value); -uint8_t *cheevos_get_memory(const cheevos_var_t *var); -#endif - static bool command_read_ram(const char *arg) { #ifdef HAVE_CHEEVOS