public override bool Equals(object obj) { if (object.ReferenceEquals(this, obj)) { return(true); } CIAGame game = obj as CIAGame; if (game == null) { return(false); } return(this.FilePath == game.FilePath); }
RomInformation IRomParser.ParseRom(FileInfo pRomFile) { if (pRomFile.Extension.ToLower() != ".cia") { return(new RomInformation()); } RomInformation lRomInfo = new RomInformation(); CIAGame cIAGame = new CIAGame(pRomFile.FullName); lRomInfo.BasicInfo.Serial = cIAGame.Serial; lRomInfo.BasicInfo.Title_ID = cIAGame.TitleId; lRomInfo.BasicInfo.Publisher = cIAGame.Publisher; lRomInfo.BasicInfo.Manufacturer = cIAGame.MakerCode; if (cIAGame.Titles.Count > 0) { lRomInfo.BasicInfo.English_Title = cIAGame.Titles[0].ShortDescription; } lRomInfo.ExpandInfo.LargeIcon = BQIO.BitmapToBitmapImage(cIAGame.LargeIcon); lRomInfo.ExpandInfo.SmallIcon = BQIO.BitmapToBitmapImage(cIAGame.SmallIcon); return(lRomInfo); }