Skip to content

Commit

Permalink
Add support for min-size flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
trhodeos committed Mar 18, 2018
1 parent e30060a commit 3530d6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/spicy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ func main() {
if err != nil {
panic(err)
}
if *romsize_mbits > 0 {
minSize := int64(1000000 * *romsize_mbits / 8)
_, err := out.WriteAt([]byte{0}, minSize)
if err != nil {
panic(err)
}
}
_, err = rom.Save(out)
if err != nil {
panic(err)
Expand Down

0 comments on commit 3530d6c

Please sign in to comment.