mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
Cheats: Ignore 00 code
This commit is contained in:
parent
4e9135cd57
commit
6961e645c6
|
@ -392,6 +392,12 @@ void CheatCode::Apply() const
|
||||||
const Instruction& inst = instructions[index];
|
const Instruction& inst = instructions[index];
|
||||||
switch (inst.code)
|
switch (inst.code)
|
||||||
{
|
{
|
||||||
|
case InstructionCode::Nop:
|
||||||
|
{
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case InstructionCode::ConstantWrite8:
|
case InstructionCode::ConstantWrite8:
|
||||||
{
|
{
|
||||||
CPU::SafeWriteMemoryByte(inst.address, inst.value8);
|
CPU::SafeWriteMemoryByte(inst.address, inst.value8);
|
||||||
|
|
|
@ -9,6 +9,7 @@ struct CheatCode
|
||||||
{
|
{
|
||||||
enum class InstructionCode : u8
|
enum class InstructionCode : u8
|
||||||
{
|
{
|
||||||
|
Nop = 0x00,
|
||||||
ConstantWrite8 = 0x30,
|
ConstantWrite8 = 0x30,
|
||||||
ConstantWrite16 = 0x80,
|
ConstantWrite16 = 0x80,
|
||||||
Increment16 = 0x10,
|
Increment16 = 0x10,
|
||||||
|
|
Loading…
Reference in a new issue