diff --git a/src/main.c b/src/main.c index 9b1a7cdad..3a894c697 100644 --- a/src/main.c +++ b/src/main.c @@ -6,8 +6,6 @@ * **/ -#include "rc_client.h" -#include "rc_consoles.h" #include #include #define SE_AUDIO_SAMPLE_RATE 48000 @@ -20,7 +18,11 @@ #include "http_control_server.h" #endif +#ifdef ENABLE_RETRO_ACHIEVEMENTS +#include "rc_client.h" +#include "rc_consoles.h" #include "retro_achievements.h" +#endif #include "gba.h" #include "nds.h" @@ -6710,7 +6712,9 @@ static void frame(void) { if(emu_state.joy.inputs[SE_KEY_TOGGLE_FULLSCREEN]&&last_toggle_fullscreen==false)sapp_toggle_fullscreen(); last_toggle_fullscreen = emu_state.joy.inputs[SE_KEY_TOGGLE_FULLSCREEN]; #endif +#ifdef ENABLE_RETRO_ACHIEVEMENTS retro_achievements_keep_alive(); +#endif #ifdef SE_PLATFORM_ANDROID //Handle Android Back Button Navigation diff --git a/src/retro_achievements.cpp b/src/retro_achievements.cpp index 7a39020d4..4116f07f9 100644 --- a/src/retro_achievements.cpp +++ b/src/retro_achievements.cpp @@ -140,13 +140,11 @@ struct ra_game_state_t void inc() { outstanding_requests++; - printf("outstanding requests: %d\n", outstanding_requests.load()); } void dec() { outstanding_requests--; - printf("outstanding requests: %d\n", outstanding_requests.load()); } }; @@ -1143,11 +1141,6 @@ void retro_achievements_keep_alive() } } -void retro_achievements_logout() -{ - rc_client_logout(ra_state->rc_client); -} - atlas_tile_t* retro_achievements_get_game_image() { if (!ra_state->game_state) @@ -1220,7 +1213,6 @@ void retro_achievements_update_atlases() sg_image_data data = {0}; data.subimage[0][0].ptr = atlas->data.data(); data.subimage[0][0].size = atlas->data.size(); - printf("updating image %d\n", atlas->image.id); sg_update_image(atlas->image, data); }