Ok, the new version was corrected the error when i add batch of roms is canceled. But still does not add roms already scanned. I propose a solution.
Your code would be something similar to this:
1) read Roms
2) init routine until last roms
2.1) Read rom
2.2) search Internet to covers, etc...
2.3) download covers, etc...
2.4) next roms
3) write in launchbox the roms (with covers, etc..)
if error, cancel, etc occurs the 3 step don't make....
My proposed code:
1) read roms
2) init routine until last roms
2.1) read rom
2.2) search intenet to covers, etc...
2.3) download covers
my option..... 2.4 write roms in launchbox (covers, etc..)
2.4) next roms
3) end...
if error,cancel, etc occurs the launch has write all the roms until error or cancel.