HaxeFoundation / format

Various files formats support for Haxe
131 stars 59 forks source link

[SWF] Implement LZMA #44

Closed clemos closed 8 years ago

clemos commented 8 years ago

It seems some SWF are compressed using LZMA, see : https://github.com/OpenGG/swfzip/blob/master/swfzip.py

Simn commented 8 years ago

I don't think opening issues like this is going to achieve anything unless you plan to work on this yourself.

ncannasse commented 8 years ago

Indeed. Waiting for a PR :)

clemos commented 8 years ago

Maybe you should disable Issues if you want PRs only ? Because I used the exact same workflow for https://github.com/HaxeFoundation/format/issues/37 (report the issue for info, work on it, PR) and it didn't seem to be a problem then. Happy new year :D

ncannasse commented 8 years ago

I'm accepting issues when they are issues, not features requests such as adding a complete new format. You can still submit a PR without having to open an issue beforehand :)

clemos commented 8 years ago

The LZMA algorithm alone is a new feature indeed. But I would say it's an actual bug for format.swf.*, as it throws an "Invalid SWF" error for SWFs that are compressed this way. If you want, I can make a PR for format.swf.* that throws a more informative "LZMA is not implemented" when the format.swf.Reader encounters this compression format ? I plan to work on implementing LZMA anyway, but I think it would be nice to have that in the meantime.

ncannasse commented 8 years ago

@clemos your original issue was more about adding full LZMA support but sure, that makes sense to add proper error in SWF format until it's supported