remove path debug; convert all other chat abuses to Game.Debug()

This commit is contained in:
Chris Forbes
2010-03-30 07:54:23 +13:00
parent 3e45ed6133
commit 8e0e776a9a
4 changed files with 12 additions and 21 deletions

View File

@@ -85,7 +85,7 @@ namespace OpenRA
content = new MemoryStream();
Game.chat.AddLine(Color.White, "Debug", "Requesting package: {0}".F(currentPackage));
Game.Debug("Requesting package: {0}".F(currentPackage));
Game.IssueOrder(
new Order("RequestFile", null, currentPackage) { IsImmediate = true });
@@ -102,7 +102,7 @@ namespace OpenRA
if (CalculateSHA1(parts[0]) != parts[1])
throw new InvalidOperationException("Broken download");
Game.chat.AddLine(Color.White, "Debug", "Finished receiving package: {0}".F(currentPackage));
Game.Debug("Finished receiving package: {0}".F(currentPackage));
currentPackage = null;
@@ -120,17 +120,17 @@ namespace OpenRA
var parts = p.Split(':');
if (!File.Exists(parts[0]))
{
Game.chat.AddLine(Color.White, "Debug", "Missing package: {0}".F(p));
Game.Debug("Missing package: {0}".F(p));
return false;
}
if (CalculateSHA1(parts[0]) != parts[1])
{
Game.chat.AddLine(Color.White, "Debug", "Bad SHA1 for package; redownloading: {0}".F(p));
Game.Debug("Bad SHA1 for package; redownloading: {0}".F(p));
return false;
}
Game.chat.AddLine(Color.White, "Debug", "Verified package: {0}".F(p));
Game.Debug("Verified package: {0}".F(p));
return true;
}