From a7af349daee85237384dba07533c9a407cf15592 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 Jul 2020 19:00:41 -0400 Subject: 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. --- src/core/memory/cheat_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/memory/cheat_engine.h') diff --git a/src/core/memory/cheat_engine.h b/src/core/memory/cheat_engine.h index d4068cf84..fa039a831 100644 --- a/src/core/memory/cheat_engine.h +++ b/src/core/memory/cheat_engine.h @@ -72,7 +72,7 @@ public: void Reload(std::vector 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; -- cgit v1.2.3