fraganator / archive-cache-manager

A LaunchBox plugin which extracts and caches large ROM archives, letting you play games faster.
GNU Lesser General Public License v2.1
11 stars 5 forks source link

Cleanup extraction path on process termination or error #2

Closed fraganator closed 3 years ago

fraganator commented 3 years ago

LaunchBox can terminate the extraction process during the startup screen by pressing Esc. This will forcibly end the archive cache manager process and the 7z child process. There will also be partially extracted files in the cache. Similarly an extraction error can leave some files in the cache.

On termination, don't have a chance to cleanup. Instead cleanup should be performed the next time that game is run (see #1), else it will eventually be removed from the cache as it fills up.

On extraction error, can cleanup the cache straight away.