fix the screwed up callbacks

This commit is contained in:
starfrost013
2025-01-12 19:11:20 +00:00
parent cbfeed7ea4
commit 8c48478706
2 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ typedef struct rivatimer_s
double value; // The current value of the rivatimer
bool running; // Is this RivaTimer running?
struct rivatimer_s* next; // Next RivaTimer
void (*callback)(void); // Callback to call on fire
void (*callback)(double real_time); // Callback to call on fire
#ifdef _WIN32
LARGE_INTEGER starting_time; // Starting time.
#else

View File

@@ -34,7 +34,7 @@ rivatimer_t* rivatimer_tail; // The tail of the rivatimer list.
/* Functions only used in this translation unit */
bool rivatimer_really_exists(rivatimer_t* rivatimer); // Determine if a rivatimer really exists in the linked list.
void rivatimer_init()
void rivatimer_init(void)
{
// Destroy all the rivatimers.
rivatimer_t* rivatimer_ptr = rivatimer_head;
@@ -162,7 +162,7 @@ void rivatimer_destroy(rivatimer_t* rivatimer_ptr)
rivatimer_ptr = NULL; //explicitly set to null
}
void rivatimer_update_all()
void rivatimer_update_all(void)
{
rivatimer_t* rivatimer_ptr = rivatimer_head;