(Libretro) Expose perf_register too

This commit is contained in:
twinaphex 2013-12-17 20:25:48 +01:00
parent 166aa29443
commit b984a8d57e
2 changed files with 3 additions and 0 deletions

View File

@ -848,6 +848,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
cb->get_time_usec = rarch_get_time_usec;
cb->get_cpu_features = rarch_get_cpu_features;
cb->perf_log = rarch_perf_log;
cb->perf_register = rarch_perf_register;
break;
}

View File

@ -617,6 +617,7 @@ typedef retro_time_t (*retro_perf_get_time_usec_t)(void);
typedef retro_perf_tick_t (*retro_perf_get_counter_t)(void);
typedef void (*retro_get_cpu_features_t)(unsigned*);
typedef void (*retro_perf_log_t)(void);
typedef void (*retro_perf_register_t)(retro_perf_counter_t*);
struct retro_perf_callback
{
@ -624,6 +625,7 @@ struct retro_perf_callback
retro_perf_get_counter_t get_perf_counter;
retro_get_cpu_features_t get_cpu_features;
retro_perf_log_t perf_log;
retro_perf_register_t perf_register;
};
#if defined(PERF_TEST)