this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2072 from jezze/add-missing-libretro-callbacks

Fix counter and freq for libretro

authored by

Vadim Grigoruk and committed by
GitHub
85b7eec9 30db24d0

+17 -1
+17 -1
src/system/libretro/tic80_libretro.c
··· 78 78 static struct tic80_state* state; 79 79 80 80 /** 81 + * TIC-80 callback; Request counter 82 + */ 83 + static u64 tic80_libretro_counter() 84 + { 85 + return clock(); 86 + } 87 + 88 + /** 89 + * TIC-80 callback; Request freq 90 + */ 91 + static u64 tic80_libretro_freq() 92 + { 93 + return CLOCKS_PER_SEC; 94 + } 95 + 96 + /** 81 97 * TIC-80 callback; Requests the content to exit. 82 98 */ 83 99 void tic80_libretro_exit() ··· 806 822 tic80_libretro_update_keyboard(&state->input.keyboard); 807 823 808 824 // Update the game state. 809 - tic80_tick(game, state->input, NULL, NULL); 825 + tic80_tick(game, state->input, tic80_libretro_counter, tic80_libretro_freq); 810 826 tic80_sound(game); 811 827 } 812 828