diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-30 02:34:46 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-30 02:34:46 +0200 |
commit | 8b0f8b9e597eb50ff9323037fd5fa1b9e330c467 (patch) | |
tree | 3b6613d6c7672803c371ef7043cf35b713b975b1 /depends/pack200/src/unpack200.cpp | |
parent | 604162acdf5283a9759c1b3ce9e90887a6599ce7 (diff) | |
download | MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.gz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.lz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.tar.xz MultiMC-8b0f8b9e597eb50ff9323037fd5fa1b9e330c467.zip |
``Working'' forge unpackers. Needs a lot of hardening but good for alpha.
Diffstat (limited to 'depends/pack200/src/unpack200.cpp')
-rw-r--r-- | depends/pack200/src/unpack200.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/pack200/src/unpack200.cpp b/depends/pack200/src/unpack200.cpp index c6aa0b02..2ff8c34a 100644 --- a/depends/pack200/src/unpack200.cpp +++ b/depends/pack200/src/unpack200.cpp @@ -156,8 +156,11 @@ void unpack_200(std::string input_path, std::string output_path) magic = read_magic(&u, peek, (int)sizeof(peek)); if (magic != (int)JAVA_PACKAGE_MAGIC) { + // we do not feel strongly about this kind of thing... + /* if (magic != EOF_MAGIC) unpack_abort("garbage after end of pack archive"); + */ break; // all done } |