mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
implemented PBZ archives, PSB images and MV audio.
This commit is contained in:
@@ -133,6 +133,13 @@ namespace GameRes.Formats.Purple
|
||||
int height = (int)m_info.Height;
|
||||
m_output = new byte[m_stride * height];
|
||||
|
||||
int x_blocks = width >> 4;
|
||||
if (0 != (width & 0xF))
|
||||
++x_blocks;
|
||||
int y_blocks = height >> 4;
|
||||
if (0 != (height & 0xF))
|
||||
++y_blocks;
|
||||
|
||||
int plane_size = width * height;
|
||||
byte[] plane = new byte[plane_size];
|
||||
|
||||
@@ -157,13 +164,6 @@ namespace GameRes.Formats.Purple
|
||||
m_lzss_frame[i] = 0;
|
||||
LzssUnpack (bit_src, data_src, plane, channel_size);
|
||||
|
||||
int x_blocks = width >> 4;
|
||||
if (0 != (width & 0xF))
|
||||
++x_blocks;
|
||||
int y_blocks = height >> 4;
|
||||
if (0 != (height & 0xF))
|
||||
++y_blocks;
|
||||
|
||||
if (0 == y_blocks || 0 == x_blocks)
|
||||
continue;
|
||||
int plane_src = 0;
|
||||
|
||||
Reference in New Issue
Block a user