vn-tools / arc_unpacker

CLI tool for extracting images and sounds from visual novels.
GNU General Public License v3.0
562 stars 83 forks source link

Improve format autodetection #17

Closed rr- closed 9 years ago

rr- commented 9 years ago

Right now the program just loops through all possible format readers and tries to unpack with each one of them. Exception happened? Try another reader.

This causes ugly anomalies. For example:

This should be fixed. I could add new exception, say, RecognitionError and catch only that, but this won't make any good to detecting false positives (example from second point).

What should be done instead:

Cons of this solution are limited and, in my opinion, negligible: