Mercurial > repos > blastem
diff sms.c @ 1688:395f684c5379
Fixed the most glaring issues in libretro build
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 20 Jan 2019 16:24:22 -0800 |
parents | 6909c5d0bbb5 |
children | 319d90025d50 |
line wrap: on
line diff
--- a/sms.c Sun Jan 20 01:03:21 2019 -0800 +++ b/sms.c Sun Jan 20 16:24:22 2019 -0800 @@ -386,18 +386,22 @@ target_cycle -= adjust; } } +#ifndef IS_LIB bindings_release_capture(); vdp_release_framebuffer(sms->vdp); render_pause_source(sms->psg->audio); +#endif sms->should_return = 0; } static void resume_sms(system_header *system) { sms_context *sms = (sms_context *)system; +#ifndef IS_LIB bindings_reacquire_capture(); vdp_reacquire_framebuffer(sms->vdp); render_resume_source(sms->psg->audio); +#endif run_sms(system); } @@ -446,6 +450,7 @@ { sms_context *sms = (sms_context *)system; sms->should_return = 1; + sms->z80->target_cycle = sms->z80->sync_cycle = sms->z80->current_cycle; } static void inc_debug_mode(system_header *system)