Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Add bzip2 and Umineko steam release support #153

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NotKyon
Copy link

@NotKyon NotKyon commented Jun 15, 2018

This pull request adds support for the Umineko steam releases. (nscripter/nsa; compression type 4 (Nbz)) It also fixes issue #152 as well.

return combine64( s.total_out_lo32, s.total_out_hi32 );
}
inline uint64_t total_in( const bz_stream &s ) {
return combine64( s.total_in_lo32, s.total_in_hi32 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed tabs and spaces

{
/* http://bzip.org/1.0.5/bzip2-manual-1.0.5.html#bzcompress-init */

const std::array<int,4> levels { 9, 6, 1, 0 };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More whitespace issues

const bstr &input,
const CompressionLevel = CompressionLevel::Best);


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double blank line

@@ -27,6 +27,10 @@ find_package(ZLIB REQUIRED)
include_directories(${ZLIB_INCLUDE_DIR})
link_directories(${ZLIB_LIBRARY_DIRS})

find_package(BZip2 REQUIRED)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this into optional dependency?

@rr-
Copy link
Member

rr- commented Jul 6, 2018

Also the commit messages should be adjusted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants