(2402e736e) Tester's build, January 25th 2020
This commit is contained in:
@@ -420,7 +420,7 @@ namespace Barotrauma
|
||||
if (logging)
|
||||
{
|
||||
var fileMd5 = new Md5Hash(hash);
|
||||
DebugConsole.NewMessage(" " + file.Path + ": " + fileMd5.ShortHash);
|
||||
DebugConsole.NewMessage(" " + file.Path + ": " + fileMd5.Hash);
|
||||
}
|
||||
hashes.Add(hash);
|
||||
}
|
||||
@@ -440,7 +440,7 @@ namespace Barotrauma
|
||||
md5Hash = new Md5Hash(bytes);
|
||||
if (logging)
|
||||
{
|
||||
DebugConsole.NewMessage("****************************** Package hash: " + md5Hash.ShortHash);
|
||||
DebugConsole.NewMessage("****************************** Package hash: " + md5Hash.Hash);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,6 +470,14 @@ namespace Barotrauma
|
||||
break;
|
||||
}
|
||||
|
||||
if (filePaths.Count > 1)
|
||||
{
|
||||
using (MD5 tempMd5 = MD5.Create())
|
||||
{
|
||||
filePaths = filePaths.OrderBy(f => ToolBox.StringToUInt32Hash(f.CleanUpPathCrossPlatform(true), tempMd5)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
foreach (string filePath in filePaths)
|
||||
{
|
||||
if (!File.Exists(filePath)) continue;
|
||||
|
||||
Reference in New Issue
Block a user