Skip to content

Commit

Permalink
Fix bug with FXF generation when filename has multiple extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed Aug 30, 2024
1 parent 40d3f5d commit a878743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,5 @@ fn main() -> anyhow::Result<()> {
.parse()?
.assemble()?
.batchpatch_labels()
.build_binary(match output_file_name.split_once('.') {
Some((_file_name, ext)) => {
if ext == "fxf" {
BinaryType::Fxf
} else {
BinaryType::Flat
}
}
None => BinaryType::Flat,
})
.build_binary(if output_file_name.ends_with(".fxf") { BinaryType::Fxf } else { BinaryType::Flat })
}

0 comments on commit a878743

Please sign in to comment.