Mercurial > repos > blastem
diff sms.c @ 2600:251cc75574af
Basic emscripten support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 13 Feb 2025 02:18:30 -0800 |
parents | 99e59fdddbc3 |
children | c768bbd912f1 |
line wrap: on
line diff
--- a/sms.c Sun Feb 09 22:46:07 2025 -0800 +++ b/sms.c Thu Feb 13 02:18:30 2025 -0800 @@ -1099,12 +1099,6 @@ { sms_context *sms = (sms_context *)system; uint32_t target_cycle = sms->z80->Z80_CYCLE + 3420*16; - //TODO: PAL support - if (sms->vdp->type == VDP_GAMEGEAR) { - render_set_video_standard(VID_GAMEGEAR); - } else { - render_set_video_standard(VID_NTSC); - } while (!sms->should_return) { if (system->delayed_load_slot) { @@ -1214,6 +1208,12 @@ sms_context *sms = (sms_context *)system; if (sms->header.force_release || render_should_release_on_exit()) { sms->header.force_release = 0; + //TODO: PAL support + if (sms->vdp->type == VDP_GAMEGEAR) { + render_set_video_standard(VID_GAMEGEAR); + } else { + render_set_video_standard(VID_NTSC); + } bindings_reacquire_capture(); vdp_reacquire_framebuffer(sms->vdp); render_resume_source(sms->psg->audio); @@ -1239,6 +1239,12 @@ #endif } + //TODO: PAL support + if (sms->vdp->type == VDP_GAMEGEAR) { + render_set_video_standard(VID_GAMEGEAR); + } else { + render_set_video_standard(VID_NTSC); + } run_sms(system); }