mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-04 21:30:10 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a931eae67 | ||
|
|
47caa714c4 |
@@ -11,9 +11,9 @@
|
||||
<Copyright>Copyright (c)2005-2010 Gernot Knippen, Copyright (c)2018-2021 Matt Nadareski</Copyright>
|
||||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
|
||||
<RepositoryUrl>https://github.com/mnadareski/BurnOutSharp</RepositoryUrl>
|
||||
<Version>1.6.0</Version>
|
||||
<AssemblyVersion>1.6.0</AssemblyVersion>
|
||||
<FileVersion>1.6.0</FileVersion>
|
||||
<Version>1.6.1</Version>
|
||||
<AssemblyVersion>1.6.1</AssemblyVersion>
|
||||
<FileVersion>1.6.1</FileVersion>
|
||||
<IncludeSource>true</IncludeSource>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -129,7 +129,6 @@ namespace BurnOutSharp.FileType
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@@ -141,7 +140,6 @@ namespace BurnOutSharp.FileType
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@@ -153,7 +151,6 @@ namespace BurnOutSharp.FileType
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@@ -165,7 +162,6 @@ namespace BurnOutSharp.FileType
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@@ -200,7 +196,6 @@ namespace BurnOutSharp.FileType
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
@@ -209,7 +204,6 @@ namespace BurnOutSharp.FileType
|
||||
// Make sure we have something to do.
|
||||
if(sPackage.Length == 0)
|
||||
{
|
||||
PrintUsage();
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -348,47 +342,6 @@ namespace BurnOutSharp.FileType
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static void Pause()
|
||||
{
|
||||
if(bPause)
|
||||
{
|
||||
Console.Write("Press any key to continue . . . ");
|
||||
Console.ReadKey(true);
|
||||
}
|
||||
}
|
||||
|
||||
private static void PrintUsage()
|
||||
{
|
||||
System.Reflection.AssemblyName Name = System.Reflection.Assembly.GetExecutingAssembly().GetName();
|
||||
|
||||
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));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Correct HLExtract.Net usage:");
|
||||
Console.WriteLine(" -p <filepath> (Package to load.)");
|
||||
Console.WriteLine(" -d <path> (Destination extraction directory.)");
|
||||
Console.WriteLine(" -x <command> (Execute console command.)");
|
||||
Console.WriteLine(" -s (Silent mode.)");
|
||||
Console.WriteLine(" -u (Don't pause on error..)");
|
||||
Console.WriteLine(" -m (Use file mapping.)");
|
||||
Console.WriteLine(" -q (Use quick file mapping.)");
|
||||
Console.WriteLine(" -v (Allow volatile access.)");
|
||||
Console.WriteLine(" -w (Allow write access.)");
|
||||
Console.WriteLine(" -o (Don't overwrite files.)");
|
||||
Console.WriteLine(" -n <path> (NCF file's root path.)");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Example HLExtract.Net usage:");
|
||||
Console.WriteLine("HLExtract.Net.exe -p \"C:\\half-life.gcf\" -d \"C:\\backup\"");
|
||||
Console.WriteLine("HLExtract.Net.exe -p \"C:\\half-life.gcf\" -m -v");
|
||||
Console.WriteLine("HLExtract.Net.exe -p \"C:\\half-life.gcf\" -w -x defragment -x exit");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Batching HLExtract.Net:");
|
||||
Console.WriteLine("for %%F in (*.gcf) do HLExtract.Net.exe -p \"%%F\" -u -v -x \"info .\" -x exit");
|
||||
Console.WriteLine("for %%F in (*.gcf) do HLExtract.Net.exe -p \"%%F\" -s -u -x \"validate .\" -x exit");
|
||||
Console.WriteLine("for %%F in (*.gcf) do HLExtract.Net.exe -p \"%%F\" -s -u -w -x defragment -x exit");
|
||||
|
||||
Pause();
|
||||
}
|
||||
|
||||
private static readonly uint MAX_PATH_SIZE = 512;
|
||||
|
||||
private static string GetPath(IntPtr pItem)
|
||||
|
||||
Reference in New Issue
Block a user