isolation cmd will unpack "empty" partitions

master
cheetah 1 month ago
parent 6f33509a70
commit 312cf2f075

@ -11,8 +11,7 @@ import (
)
type S19IsolateAllPartitionsCommand struct {
FileName string `long:"file" short:"f" required:"true" description:"s19 filename"`
OutputDir string `long:"out" short:"o" required:"true" description:"output dir, format:dir+mpar/bin"`
FileName string `long:"file" short:"f" required:"true" description:"s19 filename"`
}
func (command *S19IsolateAllPartitionsCommand) Execute(args []string) error {
@ -59,10 +58,10 @@ func (command *S19IsolateAllPartitionsCommand) Execute(args []string) error {
),
)
if fpHeader.TotalSize == 0 {
log.Warn().Msg("cannot extract a partition thats empty")
continue
}
// if fpHeader.TotalSize == 0 {
// log.Warn().Msg("cannot extract a partition thats empty")
// continue
// }
//
{
outMBarFile, err := os.Create(path.Join("s19-dump", path.Base(command.FileName), fmt.Sprintf("part%d.mpar", index)))

@ -62,10 +62,10 @@ func (command *S19IsolatePartitionCommand) Execute(args []string) error {
),
)
if fpHeader.TotalSize == 0 {
log.Error().Msg("cannot extract a partition thats empty")
return nil
}
// if fpHeader.TotalSize == 0 {
// log.Error().Msg("cannot extract a partition thats empty")
// return nil
// }
//
{
outMBarFile, err := os.Create(command.OutputFileName)

Loading…
Cancel
Save