Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
2543:9a07d299604b | 2544:99e59fdddbc3 |
---|---|
439 free(lock_on.dir); | 439 free(lock_on.dir); |
440 free(lock_on.name); | 440 free(lock_on.name); |
441 free(lock_on.extension); | 441 free(lock_on.extension); |
442 free(lock_on.orig_path); | 442 free(lock_on.orig_path); |
443 if (lock_on_path) { | 443 if (lock_on_path) { |
444 reload_media(); | 444 if (!current_system || !current_system->lockon_change) { |
445 cart.chain = NULL; | |
446 reload_media(); | |
447 } | |
445 cart.chain = &lock_on; | 448 cart.chain = &lock_on; |
446 load_media(lock_on_path, &lock_on, NULL); | 449 load_media(lock_on_path, &lock_on, NULL); |
450 if (current_system && current_system->lockon_change) { | |
451 current_system->lockon_change(current_system, &lock_on); | |
452 } | |
447 } else { | 453 } else { |
448 lock_on.dir = NULL; | 454 lock_on.dir = NULL; |
449 lock_on.name = NULL; | 455 lock_on.name = NULL; |
450 lock_on.extension = NULL; | 456 lock_on.extension = NULL; |
451 lock_on.orig_path = NULL; | 457 lock_on.orig_path = NULL; |