@@ -30,6 +30,7 @@ static void PrintHelp()
3030 Console . WriteLine ( "Rebuild mode: Don't use any options (combines input files)" ) ;
3131 Console . WriteLine ( "Extract mode: Use one or more options (splits input file)" ) ;
3232 Console . WriteLine ( "-a, --all \t All options for lossless XISO extraction (-rstuvwxy)" ) ;
33+ Console . WriteLine ( "-o, --output \t Extracts and outputs the game files from the XISO" ) ;
3334 Console . WriteLine ( "-p, --petrify\t Extracts XDVDFS skeleton (game partition with zeroed files)" ) ;
3435 Console . WriteLine ( "-q, --quiet \t Don't print INFO messages to console" ) ;
3536 Console . WriteLine ( "-r, --random \t Extracts random filler data to a separate file" ) ;
@@ -53,6 +54,7 @@ static void Main(string[] args)
5354
5455 // Initialize program options
5556 bool help = false ;
57+ bool outputFiles = false ;
5658 bool extractSkeleton = false ;
5759 bool quiet = false ;
5860 bool extractFiller = false ;
@@ -103,6 +105,8 @@ static void Main(string[] args)
103105 extractSkeleton = true ;
104106 assumeYes = true ;
105107 break ;
108+ case "--output" :
109+ outputFiles = true ;
106110 case "--petrify" :
107111 extractSkeleton = true ;
108112 break ;
@@ -147,9 +151,6 @@ static void Main(string[] args)
147151 case 'h' :
148152 help = true ;
149153 break ;
150- case 'p' :
151- extractSkeleton = true ;
152- break ;
153154 case 'q' :
154155 quiet = true ;
155156 break ;
@@ -163,6 +164,12 @@ static void Main(string[] args)
163164 extractXISO = true ;
164165 extractSkeleton = true ;
165166 break ;
167+ case 'o' :
168+ outputFiles = true ;
169+ break ;
170+ case 'p' :
171+ extractSkeleton = true ;
172+ break ;
166173 case 'r' :
167174 extractFiller = true ;
168175 break ;
@@ -266,7 +273,7 @@ static void Main(string[] args)
266273 {
267274 #region Mode 1: Redump ISO as input
268275
269- if ( ! extractFiller && ! extractSeed && ! extractUpdate && ! extractVideo && ! extractXISO && ! extractSkeleton && ! extractZAR )
276+ if ( ! extractFiller && ! extractSeed && ! extractUpdate && ! extractVideo && ! extractXISO && ! extractSkeleton && ! outputFiles && ! extractZAR )
270277 {
271278 Console . WriteLine ( "[ERROR] Redump ISO provided with no options, nothing to do" ) ;
272279 Console . WriteLine ( " Run with --all flag for lossless conversion to XISO" ) ;
0 commit comments