mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
dmnt-cheat: revise cheatentry definition
This commit is contained in:
parent
e4cc39c29b
commit
f5ac895062
2 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
};
|
Loading…
Reference in a new issue