diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/errors.h | 4 | ||||
| -rw-r--r-- | src/core/hle/service/hid/irs.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/irs.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/errors.h b/src/core/hle/service/hid/errors.h index accc2b646..4613a4e60 100644 --- a/src/core/hle/service/hid/errors.h +++ b/src/core/hle/service/hid/errors.h | |||
| @@ -22,7 +22,7 @@ constexpr Result NpadNotConnected{ErrorModule::HID, 710}; | |||
| 22 | 22 | ||
| 23 | namespace Service::IRS { | 23 | namespace Service::IRS { |
| 24 | 24 | ||
| 25 | constexpr ResultCode InvalidProcessorState{ErrorModule::Irsensor, 78}; | 25 | constexpr Result InvalidProcessorState{ErrorModule::Irsensor, 78}; |
| 26 | constexpr ResultCode InvalidIrCameraHandle{ErrorModule::Irsensor, 204}; | 26 | constexpr Result InvalidIrCameraHandle{ErrorModule::Irsensor, 204}; |
| 27 | 27 | ||
| 28 | } // namespace Service::IRS | 28 | } // namespace Service::IRS |
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp index b6e7c0792..d5107e41f 100644 --- a/src/core/hle/service/hid/irs.cpp +++ b/src/core/hle/service/hid/irs.cpp | |||
| @@ -529,7 +529,7 @@ void IRS::ActivateIrsensorWithFunctionLevel(Kernel::HLERequestContext& ctx) { | |||
| 529 | rb.Push(ResultSuccess); | 529 | rb.Push(ResultSuccess); |
| 530 | } | 530 | } |
| 531 | 531 | ||
| 532 | ResultCode IRS::IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_handle) const { | 532 | Result IRS::IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_handle) const { |
| 533 | if (camera_handle.npad_id > | 533 | if (camera_handle.npad_id > |
| 534 | static_cast<u8>(NpadIdTypeToIndex(Core::HID::NpadIdType::Handheld))) { | 534 | static_cast<u8>(NpadIdTypeToIndex(Core::HID::NpadIdType::Handheld))) { |
| 535 | return InvalidIrCameraHandle; | 535 | return InvalidIrCameraHandle; |
diff --git a/src/core/hle/service/hid/irs.h b/src/core/hle/service/hid/irs.h index 516620b4d..2e6115c73 100644 --- a/src/core/hle/service/hid/irs.h +++ b/src/core/hle/service/hid/irs.h | |||
| @@ -57,7 +57,7 @@ private: | |||
| 57 | void StopImageProcessorAsync(Kernel::HLERequestContext& ctx); | 57 | void StopImageProcessorAsync(Kernel::HLERequestContext& ctx); |
| 58 | void ActivateIrsensorWithFunctionLevel(Kernel::HLERequestContext& ctx); | 58 | void ActivateIrsensorWithFunctionLevel(Kernel::HLERequestContext& ctx); |
| 59 | 59 | ||
| 60 | ResultCode IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_handle) const; | 60 | Result IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_handle) const; |
| 61 | Core::IrSensor::DeviceFormat& GetIrCameraSharedMemoryDeviceEntry( | 61 | Core::IrSensor::DeviceFormat& GetIrCameraSharedMemoryDeviceEntry( |
| 62 | const Core::IrSensor::IrCameraHandle& camera_handle); | 62 | const Core::IrSensor::IrCameraHandle& camera_handle); |
| 63 | 63 | ||