[haiku-commits] Re: r37464 - haiku/trunk/src/add-ons/translators/shared

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 10 Jul 2010 18:11:28 -0400

On Sat, Jul 10, 2010 at 6:09 PM, Jorma Karvonen
<karvonen.jorma@xxxxxxxxx> wrote:
> Thanks, not 100% because some translators do not use BaseTranslator class. ;)

That more or less doesn't matter, the roster enumerates through all of
them trying to find a match for a given file format, so as soon as one
using BaseTranslator attempts to see if it supports a file, a crash
will result, unless you're extremely lucky and the very first
translator attempted a) supports the file, and b) is not using
BaseTranslator. Since they're enumerated in alpha order and the first
one is BMPTranslator, which does, this was pretty much impossible to
avoid.

Regards,

Rene

Other related posts: