special case for games starting with "The"

This commit is contained in:
beirich 2014-03-13 03:46:58 +00:00
parent 102f476158
commit 07e984582d
2 changed files with 11 additions and 1 deletions

View File

@ -33,7 +33,17 @@ namespace BizHawk.Client.DBMan
return Game.GameMetadata + ";" + RomMetadata;
}
}
public string SizeFriendly { get { return string.Format("{0} bytes ({1}k)", Size, Size / 1024); } }
public string NameWithTheFlipped
{
get
{
if (!Name.EndsWith(", The")) return Name;
return "The "+Name.Substring(0, Name.Length-5);
}
}
}
public class Game

View File

@ -308,7 +308,7 @@ namespace BizHawk.Client.DBMan
if (rom.Region.IndexOf("World") >= 0) regionStr += "W";
}
string romName = rom.Name;
string romName = rom.NameWithTheFlipped;
if (regionStr.Length > 0)
romName += " ("+regionStr+")";