干掉了浩方查马甲代码

This commit is contained in:
2024-08-24 01:54:11 +02:00
parent 08700abd4f
commit 66458e831c
15 changed files with 217 additions and 434 deletions

View File

@@ -37,6 +37,11 @@ namespace AnotherReplayReader.ReplayFile
FactionId = int.Parse(playerEntry[5]);
Team = int.Parse(playerEntry[7]);
}
if (PlayerName.Length == 20)
{
PlayerName = Ra3.BattleNet.Database.Utils.ChineseEncoding.DecodeChineseFromBase64(PlayerName);
}
}
}
}

View File

@@ -239,7 +239,7 @@ namespace AnotherReplayReader.ReplayFile
public bool PathEquals(Replay replay) => PathEquals(replay.Path);
public bool PathEquals(string path) => Path.Equals(path, StringComparison.OrdinalIgnoreCase);
public string GetDetails(PlayerIdentity playerIdentity)
public string GetDetails()
{
static string GetSizeString(double size)
{
@@ -273,8 +273,7 @@ namespace AnotherReplayReader.ReplayFile
break;
}
var factionName = ModData.GetFaction(Mod, player.FactionId).Name;
var realName = Type == ReplayType.Lan ? playerIdentity.FormatRealName(player.PlayerIp) : string.Empty;
writer.WriteLine($"{player.PlayerName + realName}{factionName}");
writer.WriteLine($"{player.PlayerName}{factionName}");
}
return writer.ToString();