Exemple #1
0
/**
 * netplay_pre_frame:   
 * @netplay              : pointer to netplay object
 *
 * Pre-frame for Netplay.
 * Call this before running retro_run().
 **/
void netplay_pre_frame(netplay_t *netplay)
{
   if (netplay->spectate)
      netplay_pre_frame_spectate(netplay);
   else
      netplay_pre_frame_net(netplay);
}
Exemple #2
0
void netplay_pre_frame(netplay_t *handle)
{
   if (handle->spectate)
      netplay_pre_frame_spectate(handle);
   else
      netplay_pre_frame_net(handle);
}
Exemple #3
0
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();
}