1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 02:42:09 +00:00

dmnt-cheat: revise cheatentry definition

This commit is contained in:
Michael Scire 2019-02-27 04:47:43 -08:00
parent e4cc39c29b
commit f5ac895062
2 changed files with 8 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class DmntCheatService final : public IServiceObject {
Result GetCheats(OutBuffer<CheatEntry> cheats, Out<u64> out_count, u64 offset);
Result GetCheatById(OutBuffer<CheatEntry> cheat, u32 cheat_id);
Result ToggleCheat(u32 cheat_id);
Result AddCheat(InBuffer<CheatEntry> cheat);
Result AddCheat(InBuffer<CheatDefinition> cheat, Out<u32> out_cheat_id, bool enabled);
Result RemoveCheat(u32 cheat_id);
Result GetFrozenAddressCount(Out<u64> out_count);

View file

@ -32,9 +32,14 @@ struct CheatProcessMetadata {
u8 main_nso_build_id[0x20];
};
struct CheatDefinition {
char readable_name[0x40];
uint32_t num_opcodes;
uint32_t opcodes[0x100];
};
struct CheatEntry {
bool enabled;
uint32_t cheat_id;
char readable_name[0x20];
uint32_t opcodes[0x100];
CheatDefinition definition;
};