diff --git a/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs b/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs index 0d1d1d04cf..4f1cabe100 100644 --- a/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs +++ b/src/BizHawk.Client.Common/cheats/SnesActionReplayDecoder.cs @@ -22,7 +22,7 @@ namespace BizHawk.Client.Common.cheats return new DecodeResult { - Size = WatchSize.Word, + Size = WatchSize.Byte, Address = int.Parse(code.Remove(6, 2), NumberStyles.HexNumber), Value = int.Parse(code.Remove(0, 6), NumberStyles.HexNumber) }; diff --git a/src/BizHawk.Tests/Client.Common/cheats/CheatDecoderTests.cs b/src/BizHawk.Tests/Client.Common/cheats/CheatDecoderTests.cs index 8e5d72a9ba..96d2913b02 100644 --- a/src/BizHawk.Tests/Client.Common/cheats/CheatDecoderTests.cs +++ b/src/BizHawk.Tests/Client.Common/cheats/CheatDecoderTests.cs @@ -52,6 +52,7 @@ namespace BizHawk.Tests.Client.Common.cheats new object?[] { VSystemID.Raw.GB, "BE0-37B-08C", 0x4037, 0xBE, 0xB9, WatchSize.Byte }, new object?[] { VSystemID.Raw.GBA, "4012F5B7 3B7801A6", 0x00000006, 0xB7, NO_COMPARE, WatchSize.Byte }, new object?[] { VSystemID.Raw.GBA, "686D7FC3 24B5B832", 0x00000032, 0x7FC3, NO_COMPARE, WatchSize.Word }, + new object?[] { VSystemID.Raw.SNES, "7E1F2801", 0x7E1F28, 0x01, NO_COMPARE, WatchSize.Byte }, }; [DataTestMethod]