From 1268077f6b011d43fc2c9dcd63774fcec7c8b732 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 29 May 2022 13:30:06 +0200 Subject: [PATCH] cheat: missing cheat value in constructor Fixes vf4tuned dimm check cheat writing random value (SH4 exception, boot loop) --- core/cheats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cheats.h b/core/cheats.h index 1d80d9a90..417af2145 100644 --- a/core/cheats.h +++ b/core/cheats.h @@ -56,9 +56,9 @@ struct Cheat bool builtIn; Cheat(Type type = Type::disabled, const std::string& description = "", bool enabled = false, u32 size = 0, u32 address = 0, - u8 valueMask = 0, u32 repeatCount = 1, u32 repeatValueIncrement = 0, + u32 value = 0, u8 valueMask = 0, u32 repeatCount = 1, u32 repeatValueIncrement = 0, u32 repeatAddressIncrement = 0, u32 destAddress = 0, bool builtIn = false) - : type(type), description(description), enabled(enabled), size(size), address(address), valueMask(valueMask), + : type(type), description(description), enabled(enabled), size(size), address(address), value(value), valueMask(valueMask), repeatCount(repeatCount), repeatValueIncrement(repeatValueIncrement), repeatAddressIncrement(repeatAddressIncrement), destAddress(destAddress), builtIn(builtIn) {