Default compare type to equal not NOTHING, fixes nes game genie codes generated through the cheat converter, and probably a lot of other platforms. And this is a better default, also silent failures are always bad

This commit is contained in:
adelikat 2017-02-25 15:08:20 -06:00
parent 22f9179ee7
commit 98a390b3c6
1 changed files with 1 additions and 2 deletions

View File

@ -237,8 +237,7 @@ namespace BizHawk.Client.Common
switch (_comparisonType)
{
default:
case COMPARISONTYPE.NONE: // This should never happen, but it's here just in case
break;
case COMPARISONTYPE.NONE: // This should never happen, but it's here just in case. adelikat: And yet it does! Cheat Code converter doesn't do this. Changing this to default to equal since 99.9999% of all cheats are going to be equals
case COMPARISONTYPE.EQUAL:
if (_compare.Value == _watch.ValueNoFreeze)
{