summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hidbus/stubbed.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-28 01:46:10 +0100
committerGitHub <noreply@github.com>2023-02-28 01:46:10 +0100
commit22432668be6d34b5a5275bcc631cadf512f36bf9 (patch)
tree88aeebd3448ad8fa701914839c0b1f3c876c62ac /src/core/hle/service/hid/hidbus/stubbed.cpp
parentMerge pull request #9874 from german77/violet (diff)
parentam: avoid direct pointer access of transfer memory objects (diff)
downloadyuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.gz
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.bz2
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.lz
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.xz
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.tar.zst
yuzu-22432668be6d34b5a5275bcc631cadf512f36bf9.zip
Diffstat (limited to 'src/core/hle/service/hid/hidbus/stubbed.cpp')
-rw-r--r--src/core/hle/service/hid/hidbus/stubbed.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hidbus/stubbed.cpp b/src/core/hle/service/hid/hidbus/stubbed.cpp
index 07632c872..8160b7218 100644
--- a/src/core/hle/service/hid/hidbus/stubbed.cpp
+++ b/src/core/hle/service/hid/hidbus/stubbed.cpp
@@ -8,9 +8,8 @@
namespace Service::HID {
constexpr u8 DEVICE_ID = 0xFF;
-HidbusStubbed::HidbusStubbed(Core::HID::HIDCore& hid_core_,
- KernelHelpers::ServiceContext& service_context_)
- : HidbusBase(service_context_) {}
+HidbusStubbed::HidbusStubbed(Core::System& system_, KernelHelpers::ServiceContext& service_context_)
+ : HidbusBase(system_, service_context_) {}
HidbusStubbed::~HidbusStubbed() = default;
void HidbusStubbed::OnInit() {
@@ -28,7 +27,7 @@ void HidbusStubbed::OnUpdate() {
if (!device_enabled) {
return;
}
- if (!polling_mode_enabled || !is_transfer_memory_set) {
+ if (!polling_mode_enabled || transfer_memory == 0) {
return;
}