mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 12:58:45 +08:00
Add Buf for softpal script
This commit is contained in:
@@ -265,8 +265,9 @@ impl Script for SoftpalScript {
|
||||
}
|
||||
|
||||
fn custom_export(&self, filename: &std::path::Path, _encoding: Encoding) -> Result<()> {
|
||||
let mut file = std::fs::File::create(filename)
|
||||
let file = std::fs::File::create(filename)
|
||||
.map_err(|e| anyhow::anyhow!("Failed to create file {}: {}", filename.display(), e))?;
|
||||
let mut file = std::io::BufWriter::new(file);
|
||||
Disasm::new(&self.data.data, &self.label_offsets)?.disassemble(Some(&mut file))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user