Update bp code

This commit is contained in:
2025-06-08 09:48:08 +08:00
parent a6e230eb7d
commit 0e6a6d5880

View File

@@ -70,7 +70,8 @@ impl BGIBpScript {
} }
} }
if last_instr_pos == 0 { if last_instr_pos == 0 {
return Err(anyhow::anyhow!("No end instruction found in bp script")); // return Err(anyhow::anyhow!("No end instruction found in bp script"));
last_instr_pos = reader.data.len();
} }
reader.seek(SeekFrom::Start(header_size as u64))?; reader.seek(SeekFrom::Start(header_size as u64))?;
let mut strings = Vec::new(); let mut strings = Vec::new();