summaryrefslogtreecommitdiffstats
path: root/src/core/memory/dmnt_cheat_types.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-05-31 01:34:02 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-22 03:44:22 +0200
commit12aa127df3826857149bfc4b787cfb7df3fdcafe (patch)
treeef83925202b36ab21fbf0b5c67e465a04e048b4e /src/core/memory/dmnt_cheat_types.h
parentlog: Add logging class for Cheat Engine (diff)
downloadyuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar.gz
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar.bz2
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar.lz
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar.xz
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.tar.zst
yuzu-12aa127df3826857149bfc4b787cfb7df3fdcafe.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory/dmnt_cheat_types.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/core/memory/dmnt_cheat_types.h b/src/core/memory/dmnt_cheat_types.h
new file mode 100644
index 000000000..aa1264c32
--- /dev/null
+++ b/src/core/memory/dmnt_cheat_types.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2018-2019 Atmosphère-NX
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * Adapted by DarkLordZach for use/interaction with yuzu
+ *
+ * Modifications Copyright 2019 yuzu emulator team
+ * Licensed under GPLv2 or any later version
+ * Refer to the license.txt file included.
+ */
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Memory {
+
+struct MemoryRegionExtents {
+ u64 base;
+ u64 size;
+};
+
+struct CheatProcessMetadata {
+ u64 process_id;
+ u64 title_id;
+ MemoryRegionExtents main_nso_extents;
+ MemoryRegionExtents heap_extents;
+ MemoryRegionExtents alias_extents;
+ MemoryRegionExtents address_space_extents;
+ std::array<u8, 0x20> main_nso_build_id;
+};
+
+struct CheatDefinition {
+ std::array<char, 0x40> readable_name;
+ u32 num_opcodes;
+ std::array<u32, 0x100> opcodes;
+};
+
+struct CheatEntry {
+ bool enabled;
+ u32 cheat_id;
+ CheatDefinition definition;
+};
+
+} // namespace Memory