@@ -129,7 +129,6 @@ private static int Run(string[] args)
129
129
}
130
130
else
131
131
{
132
- PrintUsage ( ) ;
133
132
return 2 ;
134
133
}
135
134
}
@@ -141,7 +140,6 @@ private static int Run(string[] args)
141
140
}
142
141
else
143
142
{
144
- PrintUsage ( ) ;
145
143
return 2 ;
146
144
}
147
145
}
@@ -153,7 +151,6 @@ private static int Run(string[] args)
153
151
}
154
152
else
155
153
{
156
- PrintUsage ( ) ;
157
154
return 2 ;
158
155
}
159
156
}
@@ -165,7 +162,6 @@ private static int Run(string[] args)
165
162
}
166
163
else
167
164
{
168
- PrintUsage ( ) ;
169
165
return 2 ;
170
166
}
171
167
}
@@ -200,7 +196,6 @@ private static int Run(string[] args)
200
196
}
201
197
else
202
198
{
203
- PrintUsage ( ) ;
204
199
return 2 ;
205
200
}
206
201
}
@@ -209,7 +204,6 @@ private static int Run(string[] args)
209
204
// Make sure we have something to do.
210
205
if ( sPackage . Length == 0 )
211
206
{
212
- PrintUsage ( ) ;
213
207
return 2 ;
214
208
}
215
209
@@ -348,47 +342,6 @@ private static int Run(string[] args)
348
342
return 0 ;
349
343
}
350
344
351
- private static void Pause ( )
352
- {
353
- if ( bPause )
354
- {
355
- Console . Write ( "Press any key to continue . . . " ) ;
356
- Console . ReadKey ( true ) ;
357
- }
358
- }
359
-
360
- private static void PrintUsage ( )
361
- {
362
- System . Reflection . AssemblyName Name = System . Reflection . Assembly . GetExecutingAssembly ( ) . GetName ( ) ;
363
-
364
- Console . WriteLine ( "HLExtract.Net v{0}.{1}.{2} using HLLib v{3}" , Name . Version . Major , Name . Version . Minor , Name . Version . Build , HLLib . hlGetString ( HLLib . HLOption . HL_VERSION ) ) ;
365
- Console . WriteLine ( ) ;
366
- Console . WriteLine ( "Correct HLExtract.Net usage:" ) ;
367
- Console . WriteLine ( " -p <filepath> (Package to load.)" ) ;
368
- Console . WriteLine ( " -d <path> (Destination extraction directory.)" ) ;
369
- Console . WriteLine ( " -x <command> (Execute console command.)" ) ;
370
- Console . WriteLine ( " -s (Silent mode.)" ) ;
371
- Console . WriteLine ( " -u (Don't pause on error..)" ) ;
372
- Console . WriteLine ( " -m (Use file mapping.)" ) ;
373
- Console . WriteLine ( " -q (Use quick file mapping.)" ) ;
374
- Console . WriteLine ( " -v (Allow volatile access.)" ) ;
375
- Console . WriteLine ( " -w (Allow write access.)" ) ;
376
- Console . WriteLine ( " -o (Don't overwrite files.)" ) ;
377
- Console . WriteLine ( " -n <path> (NCF file's root path.)" ) ;
378
- Console . WriteLine ( ) ;
379
- Console . WriteLine ( "Example HLExtract.Net usage:" ) ;
380
- Console . WriteLine ( "HLExtract.Net.exe -p \" C:\\ half-life.gcf\" -d \" C:\\ backup\" " ) ;
381
- Console . WriteLine ( "HLExtract.Net.exe -p \" C:\\ half-life.gcf\" -m -v" ) ;
382
- Console . WriteLine ( "HLExtract.Net.exe -p \" C:\\ half-life.gcf\" -w -x defragment -x exit" ) ;
383
- Console . WriteLine ( ) ;
384
- Console . WriteLine ( "Batching HLExtract.Net:" ) ;
385
- Console . WriteLine ( "for %%F in (*.gcf) do HLExtract.Net.exe -p \" %%F\" -u -v -x \" info .\" -x exit" ) ;
386
- Console . WriteLine ( "for %%F in (*.gcf) do HLExtract.Net.exe -p \" %%F\" -s -u -x \" validate .\" -x exit" ) ;
387
- Console . WriteLine ( "for %%F in (*.gcf) do HLExtract.Net.exe -p \" %%F\" -s -u -w -x defragment -x exit" ) ;
388
-
389
- Pause ( ) ;
390
- }
391
-
392
345
private static readonly uint MAX_PATH_SIZE = 512 ;
393
346
394
347
private static string GetPath ( IntPtr pItem )
0 commit comments