mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-10 00:05:07 +08:00
WIP: Entis GLS CSX v2
This commit is contained in:
@@ -149,7 +149,7 @@ impl BgiCBG {
|
||||
if !magic.starts_with(b"CompressedBG___") {
|
||||
return Err(anyhow::anyhow!("Invalid magic: {:?}", magic));
|
||||
}
|
||||
let header = BgiCBGHeader::unpack(&mut reader, false, Encoding::Cp932)?;
|
||||
let header = BgiCBGHeader::unpack(&mut reader, false, Encoding::Cp932, &None)?;
|
||||
if header.version > 2 {
|
||||
return Err(anyhow::anyhow!("Unsupported version: {}", header.version));
|
||||
}
|
||||
@@ -1129,7 +1129,8 @@ impl CbgEncoder {
|
||||
|
||||
let final_pos = self.stream.pos;
|
||||
self.stream.pos = header_pos;
|
||||
self.header.pack(&mut self.stream, false, Encoding::Cp932)?;
|
||||
self.header
|
||||
.pack(&mut self.stream, false, Encoding::Cp932, &None)?;
|
||||
self.stream.pos = final_pos;
|
||||
|
||||
Ok(self.stream.into_inner())
|
||||
|
||||
Reference in New Issue
Block a user