Don't punch me in the face, and also fix the compilation, and also fix a stupid bug in log replay.

This commit is contained in:
starfrost013
2025-01-12 19:07:27 +00:00
parent 6eaec5b756
commit 55f476617d
3 changed files with 11 additions and 12 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)(); // Callback to call on fire
void (*callback)(void); // Callback to call on fire
#ifdef _WIN32
LARGE_INTEGER starting_time; // Starting time.
#else
@@ -72,11 +72,11 @@ typedef struct rivatimer_s
double time; // Accumulated time in uS.
} rivatimer_t;
void rivatimer_init(); // Initialise the Rivatimer.
void rivatimer_init(void); // Initialise the Rivatimer.
rivatimer_t* rivatimer_create(double period, void (*callback)(double real_time));
void rivatimer_destroy(rivatimer_t* rivatimer_ptr);
void rivatimer_update_all();
void rivatimer_update_all(void);
void rivatimer_start(rivatimer_t* rivatimer_ptr);
void rivatimer_stop(rivatimer_t* rivatimer_ptr);
double rivatimer_get_time(rivatimer_t* rivatimer_ptr);