Skip to content

Commit b33625c

Browse files
authored
Flag to output files
1 parent 617a876 commit b33625c

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

Program.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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 \tAll options for lossless XISO extraction (-rstuvwxy)");
33+
Console.WriteLine("-o, --output \tExtracts and outputs the game files from the XISO");
3334
Console.WriteLine("-p, --petrify\tExtracts XDVDFS skeleton (game partition with zeroed files)");
3435
Console.WriteLine("-q, --quiet \tDon't print INFO messages to console");
3536
Console.WriteLine("-r, --random \tExtracts 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");

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
```mermaid
66
graph LR
77
A[Redump ISO]
8+
O[Game Files]
89
P[XDVDFS\nSkeleton]
910
T[Trimmed XISO]
1011
U[System\nUpdate]
@@ -25,6 +26,7 @@ graph LR
2526
X -->|--random| R
2627
X -->|--seed| S
2728
X -->|--wipe| W
29+
W -->|--output| O
2830
W -->|--petrify| P
2931
W -->|--zar| Z
3032
```
@@ -37,6 +39,7 @@ Usage: xboxkit.exe [options] <input.iso> [files]
3739
Rebuild mode: Don't use any options (combines input files)
3840
Extract mode: Use one or more options (splits input file)
3941
-a, --all All options for lossless XISO extraction (-rstuvwxy)
42+
-o, --output Extracts and outputs the game files from the XISO
4043
-p, --petrify Extracts XDVDFS skeleton (game partition with zeroed files)
4144
-q, --quiet Don't print INFO messages to console
4245
-q, --quiet Don't print INFO messages to console
@@ -69,7 +72,10 @@ Losslessly converting back to the original redump ISO:
6972
`./xboxkit.exe game.xiso`
7073
(requires all the original output files).
7174

72-
Losslessly converting from a redump ISO to a ZAR file:
75+
Losslessly converting from a redump ISO to the loose game files:
76+
`./xboxkit.exe -aop game.iso`
77+
78+
Losslessly converting from a redump ISO to a ZArchive of the game files:
7379
`./xboxkit.exe -apz game.iso`
7480

7581
Additionally outputs:

0 commit comments

Comments
 (0)