@@ -44,13 +44,15 @@ namespace OpenRA.FileFormats
|
||||
catch { return null; }
|
||||
}
|
||||
|
||||
public IEnumerable<uint> AllFileHashes()
|
||||
public IEnumerable<uint> ClassicHashes()
|
||||
{
|
||||
foreach (var filename in Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly))
|
||||
{
|
||||
yield return PackageEntry.HashFilename(Path.GetFileName(filename)); // RA1 and TD
|
||||
yield return PackageEntry.CrcHashFilename(Path.GetFileName(filename)); // TS
|
||||
}
|
||||
yield return PackageEntry.HashFilename(Path.GetFileName(filename), PackageHashType.Classic);
|
||||
}
|
||||
|
||||
public IEnumerable<uint> CrcHashes()
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
||||
public IEnumerable<string> AllFileNames()
|
||||
|
||||
Reference in New Issue
Block a user