Skip to content

Commit 47caa71

Browse files
committed
Remove pause from Valve entirely
1 parent 6740011 commit 47caa71

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

BurnOutSharp/FileType/Valve.cs

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ private static int Run(string[] args)
129129
}
130130
else
131131
{
132-
PrintUsage();
133132
return 2;
134133
}
135134
}
@@ -141,7 +140,6 @@ private static int Run(string[] args)
141140
}
142141
else
143142
{
144-
PrintUsage();
145143
return 2;
146144
}
147145
}
@@ -153,7 +151,6 @@ private static int Run(string[] args)
153151
}
154152
else
155153
{
156-
PrintUsage();
157154
return 2;
158155
}
159156
}
@@ -165,7 +162,6 @@ private static int Run(string[] args)
165162
}
166163
else
167164
{
168-
PrintUsage();
169165
return 2;
170166
}
171167
}
@@ -200,7 +196,6 @@ private static int Run(string[] args)
200196
}
201197
else
202198
{
203-
PrintUsage();
204199
return 2;
205200
}
206201
}
@@ -209,7 +204,6 @@ private static int Run(string[] args)
209204
// Make sure we have something to do.
210205
if(sPackage.Length == 0)
211206
{
212-
PrintUsage();
213207
return 2;
214208
}
215209

@@ -348,47 +342,6 @@ private static int Run(string[] args)
348342
return 0;
349343
}
350344

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-
392345
private static readonly uint MAX_PATH_SIZE = 512;
393346

394347
private static string GetPath(IntPtr pItem)

0 commit comments

Comments
 (0)