|
|
|
@ -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)))
|
|
|
|
|