cheats: iOS build fix

This commit is contained in:
Flyinghead 2022-01-29 18:40:19 +01:00
parent 5fb8b458bb
commit fe6247dded
2 changed files with 19 additions and 11 deletions

View File

@ -370,7 +370,7 @@ void CheatManager::reset(const std::string& gameId)
if (gameId == "VF4 FINAL TUNED JAPAN") if (gameId == "VF4 FINAL TUNED JAPAN")
{ {
active = true; active = true;
cheats.push_back(Cheat{ Cheat::Type::setValue, "Skip DIMM version check", true, 16, 0x000205c6, 9, 0, 1, 0, 0, 0 }); cheats.emplace_back(Cheat::Type::setValue, "Skip DIMM version check", true, 16, 0x000205c6, 9);
} }
} }
widescreen_cheat = nullptr; widescreen_cheat = nullptr;

View File

@ -42,17 +42,25 @@ struct Cheat
runNextIfLt, runNextIfLt,
copy copy
}; };
Type type = Type::disabled; Type type;
std::string description; std::string description;
bool enabled = false; bool enabled;
u32 size = 0; u32 size;
u32 address = 0; u32 address;
u32 value = 0; u32 value;
u8 valueMask = 0; u8 valueMask;
u32 repeatCount = 1; u32 repeatCount;
u32 repeatValueIncrement = 0; u32 repeatValueIncrement;
u32 repeatAddressIncrement = 0; u32 repeatAddressIncrement;
u32 destAddress = 0; u32 destAddress;
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 repeatAddressIncrement = 0, u32 destAddress = 0)
: type(type), description(description), enabled(enabled), size(size), address(address), valueMask(valueMask),
repeatCount(repeatCount), repeatValueIncrement(repeatValueIncrement), repeatAddressIncrement(repeatAddressIncrement), destAddress(destAddress)
{
}
}; };
class CheatManager class CheatManager