@@ -15,7 +15,7 @@ import (
15
15
)
16
16
17
17
type Flags struct {
18
- isConcatMode bool
18
+ // isConcatMode bool
19
19
isDecryptMode bool
20
20
isEncryptMode bool
21
21
isSplitMode bool
@@ -38,9 +38,9 @@ func parseFlags() {
38
38
decryptModePtr := flag .Bool ("d" , false , Resources .Strings .Flag ["decryptModeDesc" ])
39
39
encryptModePtr := flag .Bool ("e" , false , Resources .Strings .Flag ["encryptModeDesc" ])
40
40
splitModePtr := flag .Bool ("s" , false , Resources .Strings .Flag ["splitModeDesc" ])
41
- concatModePtr := flag .Bool ("c" , false , Resources .Strings .Flag ["concatModeDesc" ])
41
+ // concatModePtr := flag.Bool("c", false, Resources.Strings.Flag["concatModeDesc"])
42
42
flag .Func ("b" , Resources .Strings .Flag ["binFileDesc" ], func (binFilepath string ) error {
43
- if ! (* splitModePtr || * concatModePtr ) {
43
+ if ! (* splitModePtr /* || *concatModePtr*/ ) {
44
44
return nil
45
45
}
46
46
b , err := os .ReadFile (binFilepath )
@@ -81,7 +81,7 @@ func parseFlags() {
81
81
})
82
82
83
83
flag .Parse ()
84
- flags = Flags {* concatModePtr , * decryptModePtr , * encryptModePtr , * splitModePtr , * outputFilePtr }
84
+ flags = Flags { /** concatModePtr,*/ * decryptModePtr , * encryptModePtr , * splitModePtr , * outputFilePtr }
85
85
if * decryptModePtr && * encryptModePtr {
86
86
throw (Resources .Strings .Error ["bothEncrypts" ])
87
87
}
@@ -140,7 +140,6 @@ func main() {
140
140
err = file_utils .SplitRegionToFiles (romDef .Maincpu , binFile , flags .outputFile )
141
141
checkErr (err )
142
142
Resources .Logger .Done (fmt .Sprintf ("%s maincpu files written to %s" , romName , flags .outputFile ))
143
- } else if flags .isConcatMode {
144
143
}
145
144
defer romZip .Close ()
146
145
os .Exit (0 )
0 commit comments