summaryrefslogtreecommitdiffstats
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2021-11-30 04:10:02 +0100
committerGitHub <noreply@github.com>2021-11-30 04:10:02 +0100
commit46e3ed5a483eac404ff1e2103ecc4e93e815d45b (patch)
treeb5317954b6692942ba01b262616a7979141c95fc /src/core/memory/cheat_engine.cpp
parentinput_common: Fix error with thread name (diff)
parentinput_interpreter: Make use of NpadButton instead of a u64 (diff)
downloadyuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar.gz
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar.bz2
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar.lz
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar.xz
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.tar.zst
yuzu-46e3ed5a483eac404ff1e2103ecc4e93e815d45b.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory/cheat_engine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index 20f0e90f5..12446c9ac 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -19,7 +19,6 @@
namespace Core::Memory {
namespace {
constexpr auto CHEAT_ENGINE_NS = std::chrono::nanoseconds{1000000000 / 12};
-constexpr u32 KEYPAD_BITMASK = 0x3FFFFFF;
std::string_view ExtractName(std::string_view data, std::size_t start_index, char match) {
auto end_index = start_index;
@@ -61,7 +60,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
applet_resource
->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad)
.GetAndResetPressState();
- return press_state & KEYPAD_BITMASK;
+ return static_cast<u64>(press_state & HID::NpadButton::All);
}
void StandardVmCallbacks::DebugLog(u8 id, u64 value) {