/** * netplay_post_frame: * @netplay : pointer to netplay object * * Post-frame for Netplay. * We check if we have new input and replay from recorded input. * Call this after running retro_run(). **/ void netplay_post_frame(netplay_t *netplay) { if (netplay->spectate) netplay_post_frame_spectate(netplay); else netplay_post_frame_net(netplay); }
// Here we check if we have new input and replay from recorded input. void netplay_post_frame(netplay_t *handle) { if (handle->spectate) netplay_post_frame_spectate(handle); else netplay_post_frame_net(handle); }
void osd_update(running_machine *machine, int skip_redraw) { if (!skip_redraw && our_target!=NULL) { droid_ios_video_render(our_target); } netplay_t *handle = netplay_get_handle(); attotime current_time = timer_get_time(machine); //char m[256]; //sprintf(m,"fr: %d emutime sec:%d ms: %d\n",fr,current_time.seconds,(int)(current_time.attoseconds / ATTOSECONDS_PER_MILLISECOND)); //mylog(m); netplay_pre_frame_net(handle); droid_ios_poll_input(machine); netplay_post_frame_net(handle); if(handle->has_connection && handle->has_begun_game && current_time.seconds==0 && current_time.attoseconds==0) { printf("Not emulation...\n"); handle->frame = 0; handle->target_frame = 0; } myosd_check_pause(); }