Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 2401:34b4ff091891
Fix crash when loading a subsequent ROM after lock-on
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 01 Jan 2024 19:27:31 -0800 |
parents | a71176b9903d |
children | 130106f5c87a |
comparison
equal
deleted
inserted
replaced
2400:c97609fe8315 | 2401:34b4ff091891 |
---|---|
107 static uint8_t use_native_filechooser; | 107 static uint8_t use_native_filechooser; |
108 | 108 |
109 static void handle_chooser_result(uint8_t normal_open, char *full_path) | 109 static void handle_chooser_result(uint8_t normal_open, char *full_path) |
110 { | 110 { |
111 if(normal_open) { | 111 if(normal_open) { |
112 lockon_media(NULL); | |
112 if (current_system) { | 113 if (current_system) { |
113 current_system->next_rom = full_path; | 114 current_system->next_rom = full_path; |
114 current_system->request_exit(current_system); | 115 current_system->request_exit(current_system); |
115 } else { | 116 } else { |
116 init_system_with_media(full_path, SYSTEM_UNKNOWN); | 117 init_system_with_media(full_path, SYSTEM_UNKNOWN); |