void retro_run (void) { bool updated = false; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated) check_variables(); if(NEWGAME_FROM_OSD==1) { struct retro_system_av_info ninfo; retro_get_system_av_info(&ninfo); environ_cb(RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO, &ninfo); printf("ChangeAV: w:%d h:%d ra:%f %f \n",ninfo.geometry.base_width,ninfo.geometry.base_height,ninfo.geometry.aspect_ratio); NEWGAME_FROM_OSD=0; } retro_poll_mame_input(); if (draw_this_frame) video_cb(videoBuffer,rtwi, rthe, topw << LOG_PIXEL_BYTES); else video_cb(NULL,rtwi, rthe, topw << LOG_PIXEL_BYTES); co_switch(emuThread); }
void retro_run (void) { retro_poll_mame_input(); if (draw_this_frame) video_cb(videoBuffer,rtwi, rthe, topw << PITCH); else video_cb(NULL,rtwi, rthe, topw << PITCH); co_switch(emuThread); }
void retro_run (void) { bool updated = false; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated) check_variables(); retro_poll_mame_input(); if (draw_this_frame) video_cb(videoBuffer,rtwi, rthe, topw << LOG_PIXEL_BYTES); else video_cb(NULL,rtwi, rthe, topw << LOG_PIXEL_BYTES); co_switch(emuThread); }