Mercurial > repos > blastem
diff blastem.c @ 2544:99e59fdddbc3
Better cassette tape UX
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Dec 2024 13:45:35 -0800 |
parents | 8cf7cadc17ee |
children | 6aa3025bbf5f |
line wrap: on
line diff
--- a/blastem.c Thu Nov 28 23:44:36 2024 -0800 +++ b/blastem.c Mon Dec 09 13:45:35 2024 -0800 @@ -441,9 +441,15 @@ free(lock_on.extension); free(lock_on.orig_path); if (lock_on_path) { - reload_media(); + if (!current_system || !current_system->lockon_change) { + cart.chain = NULL; + reload_media(); + } cart.chain = &lock_on; load_media(lock_on_path, &lock_on, NULL); + if (current_system && current_system->lockon_change) { + current_system->lockon_change(current_system, &lock_on); + } } else { lock_on.dir = NULL; lock_on.name = NULL;