diff options
author | Mike Pavone <pavone@retrodev.com> | 2019-01-20 16:24:22 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2019-01-20 16:24:22 -0800 |
commit | 27404027deee4f439a7c053bb9eb8425e995cb4c (patch) | |
tree | 8a9e0d4a719a4257facf3350b7854842b0a06613 /sms.c | |
parent | 9b2cc51def59fa3cf50ffe92dc59cd9fe669668b (diff) |
Fixed the most glaring issues in libretro build
Diffstat (limited to 'sms.c')
-rw-r--r-- | sms.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -386,18 +386,22 @@ static void run_sms(system_header *system) 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 @@ static void request_exit(system_header *system) { 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) |