Skip to content

Commit

Permalink
feeder: fixed feed to report some tables as original of manufactured
Browse files Browse the repository at this point in the history
  • Loading branch information
stojy committed Sep 5, 2023
1 parent fb1d53b commit 09239c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ClrVpin.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=Interflip/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=ipdbid/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=jp_0027s/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Kombat/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=leds/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Levenshtein/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=lexique/@EntryIndexedValue">True</s:Boolean>
Expand All @@ -293,6 +294,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=openmcdf/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=optimisation/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Phychedelic/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Pininventions/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Pinscape/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Playfield/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=playmatic/@EntryIndexedValue">True</s:Boolean>
Expand Down
8 changes: 8 additions & 0 deletions ClrVpin/Feeder/FeederFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,14 @@ private static void FixNamedGames(OnlineGame onlineGame)
case "Rambo (Original 2021)":
FixTableType(onlineGame, TableType.SolidState);
break;
case "The Avengers Infinity Quest (Stern 2020)":
case "Nightmare (Digital Illusions 1992)":
case "Night of the Living Dead (Pininventions 2014)":
case "Batman 66 (Stern 2016)":
case "Mortal Kombat II (Midway 1992)":
// alternatively, GameDerived.CheckIsOriginal() can be overriden.. but better to fix the issue at the source where possible
WrongManufacturerYear(onlineGame, "Original");
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion ClrVpin/Feeder/FeederUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private static void MatchOnlineToLocal(IList<LocalGame> localGames, ICollection<
var isOriginal = existingMatchOnlineGame.IsOriginal || localMatchedGame.Derived.IsOriginal || fuzzyNameDetails.IsOriginal;
var existingFullName = $"{existingMatchOnlineGame.Name} ({existingMatchOnlineGame.Manufacturer} {existingMatchOnlineGame.Year})";
var fuzzyLog = $"duplicate fuzzy match: replaceExisting={replaceExistingMatch}, isOriginal={isOriginal}\n" +
var fuzzyLog = $"Duplicate fuzzy match: replaceExisting={replaceExistingMatch}, isOriginal={isOriginal}\n" +
$"- db record: {Fuzzy.LogGameInfo(localMatchedGame.Game.Name, localMatchedGame.Game.Description, localMatchedGame.Game.Manufacturer, localMatchedGame.Game.Year)}\n" +
$"- existing feed match: score={$"{existingMatchOnlineGame.Hit.Score},",-4} {Fuzzy.LogGameInfo(existingFullName, null, existingMatchOnlineGame.Manufacturer, existingMatchOnlineGame.YearString)}\n" +
$"- new feed match: score={$"{score},",-4} {Fuzzy.LogGameInfo(fuzzyNameDetails.ActualName, null, fuzzyNameDetails.Manufacturer, fuzzyNameDetails.Year?.ToString())}";
Expand Down

0 comments on commit 09239c9

Please sign in to comment.