Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/tic80.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ typedef struct

TIC80_API tic80* tic80_create(s32 samplerate, tic80_pixel_color_format format);
TIC80_API void tic80_load(tic80* tic, void* cart, s32 size);
TIC80_API void tic80_tick(tic80* tic, tic80_input input, u64 (*counter)(), u64 (*freq)());
TIC80_API void tic80_tick(tic80* tic, tic80_input input, u64 (*counter)(void*), u64 (*freq)(void*));
TIC80_API void tic80_sound(tic80* tic);
TIC80_API void tic80_delete(tic80* tic);

Expand Down
4 changes: 2 additions & 2 deletions src/system/libretro/tic80_libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static struct tic80_state* state = NULL;
/**
* TIC-80 callback; Request counter.
*/
static u64 tic80_libretro_counter()
static u64 tic80_libretro_counter(void* data)
{
if (state == NULL) {
return 0;
Expand All @@ -96,7 +96,7 @@ static u64 tic80_libretro_counter()
/**
* TIC-80 callback; Request frequency.
*/
static u64 tic80_libretro_frequency()
static u64 tic80_libretro_frequency(void* data)
{
return TIC80_FREQUENCY;
}
Expand Down
4 changes: 2 additions & 2 deletions src/system/sdl/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ static void onExit()
state.quit = true;
}

static u64 tic_sys_counter_get()
static u64 tic_sys_counter_get(void* data)
{
return SDL_GetPerformanceCounter();
}

static u64 tic_sys_freq_get()
static u64 tic_sys_freq_get(void* data)
{
return SDL_GetPerformanceFrequency();
}
Expand Down