From 0e6a6d588067f41c07302800040819189b22b175 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 8 Jun 2025 09:48:08 +0800 Subject: [PATCH] Update bp code --- src/scripts/bgi/bp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/bgi/bp.rs b/src/scripts/bgi/bp.rs index 8f8e79e..bd09ad9 100644 --- a/src/scripts/bgi/bp.rs +++ b/src/scripts/bgi/bp.rs @@ -70,7 +70,8 @@ impl BGIBpScript { } } 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))?; let mut strings = Vec::new();