aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory/cheat_engine.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-27 19:00:41 -0400
committerLioncash <mathew1800@gmail.com>2020-07-27 21:21:01 -0400
commit7decda6bc2e504211e43a4e391a38efd3d43c01e (patch)
treee337a6e823960cc6b2a7d05c7e33e80cc51a4581 /src/core/memory/cheat_engine.h
parentf8370efc1b7e58e0e7eb3520ffe5e34eeeca34c7 (diff)
core_timing: Make use of uintptr_t to represent user_data
Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly.
Diffstat (limited to 'src/core/memory/cheat_engine.h')
-rw-r--r--src/core/memory/cheat_engine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory/cheat_engine.h b/src/core/memory/cheat_engine.h
index d4068cf842..fa039a8317 100644
--- a/src/core/memory/cheat_engine.h
+++ b/src/core/memory/cheat_engine.h
@@ -72,7 +72,7 @@ public:
void Reload(std::vector<CheatEntry> cheats);
private:
- void FrameCallback(u64 userdata, std::chrono::nanoseconds ns_late);
+ void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
DmntCheatVm vm;
CheatProcessMetadata metadata;