Open Teknomancer opened 3 years ago
We should be able use our existing HashTable implementation for the extension to mime-type mapping.
We could probably use a BMessage to get the data from the archivers now that I think about it. It allows storing multiple entries under a single key.
In the archivers we could do ...
m_rulesMsg->AddString("application/x-zstd", ".zst");
m_rulesMsg->AddString("application/x-zstd", ".zstd");
...
and then iterate through them in the add-on loading code. Or the other way around with file extension as the key.
I'll assign this one to me and work on it in a day or two if you haven't already started on it. I have some ideas on how to change things around.
I haven't started on it, thanks!
Yes, using BMessage sounds good.
See discussion in 62eb75ac0dd21cef4a3a6cae6dde48104eb58ad2.