mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
ROM load progress bar
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@224 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
6d7acf9eff
commit
a9b3ffd3cc
7 changed files with 73 additions and 8 deletions
|
@ -287,6 +287,8 @@ int emu_ReloadRom(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
menu_romload_prepare(used_rom_name);
|
||||
|
||||
if(rom_data) {
|
||||
free(rom_data);
|
||||
rom_data = 0;
|
||||
|
@ -297,9 +299,11 @@ int emu_ReloadRom(void)
|
|||
sprintf(menuErrorMsg, "PicoCartLoad() failed.");
|
||||
printf("%s\n", menuErrorMsg);
|
||||
pm_close(rom);
|
||||
menu_romload_end();
|
||||
return 0;
|
||||
}
|
||||
pm_close(rom);
|
||||
menu_romload_end();
|
||||
|
||||
// detect wrong files (Pico crashes on very small files), also see if ROM EP is good
|
||||
if(rom_size <= 0x200 || strncmp((char *)rom_data, "Pico", 4) == 0 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue