From 1e9c5dc0295ddd51da6357b1856dd3721ecbef5f Mon Sep 17 00:00:00 2001 From: KikooDX Date: Fri, 30 Apr 2021 02:11:01 +0200 Subject: [PATCH] Update code to gint 2.4 --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 3398722..4acfffc 100755 --- a/src/main.c +++ b/src/main.c @@ -32,7 +32,7 @@ int callback(volatile int *frame_elapsed) void game(int *id_level, char mode, char *type) { volatile int frame_elapsed = 1; - int timer = timer_setup(TIMER_ANY, 1000000/FPS, callback, &frame_elapsed); + int timer = timer_configure(TIMER_ANY, 1000000/FPS, GINT_CALL(callback, &frame_elapsed)); timer_start(timer); char game_loop = 1; @@ -453,7 +453,7 @@ void end(unsigned int frame) int main(void) { if(!run) { - gint_switch(restore); + gint_world_switch(GINT_CALL(restore)); run = 1; } char mode = 0; @@ -482,6 +482,6 @@ int main(void) game(&id_level, mode, &type); } else if(valeur == 3) //exit - gint_switch(savefile); + gint_world_switch(GINT_CALL(savefile)); return 0; }