diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-07-24 22:23:09 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-07-24 22:23:09 +0200 |
| commit | 5b4dc32c1ad528972f3073b7ac3d7ec01cfbec02 (patch) | |
| tree | 6abb276583a5c91c2fa5a674ccaa04d0b70bde4b /src | |
| parent | a90ba7f6ac27dbf922300aa377479cb7733e7df7 (diff) | |
[core/hle/service/am] Stub ISelfController::IsIlluminanceAvailable (#4163)
MelonDS calls this and otherwise seems innocuous to implement.
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4163
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/service/self_controller.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/am/service/self_controller.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/core/hle/service/am/service/self_controller.cpp b/src/core/hle/service/am/service/self_controller.cpp index 4279483727..70ce7443c4 100644 --- a/src/core/hle/service/am/service/self_controller.cpp +++ b/src/core/hle/service/am/service/self_controller.cpp @@ -57,7 +57,7 @@ ISelfController::ISelfController(Core::System& system_, std::shared_ptr<Applet> {64, nullptr, "SetInputDetectionSourceSet"}, {65, D<&ISelfController::ReportUserIsActive>, "ReportUserIsActive"}, {66, nullptr, "GetCurrentIlluminance"}, - {67, nullptr, "IsIlluminanceAvailable"}, + {67, D<&ISelfController::IsIlluminanceAvailable>, "IsIlluminanceAvailable"}, {68, D<&ISelfController::SetAutoSleepDisabled>, "SetAutoSleepDisabled"}, {69, D<&ISelfController::IsAutoSleepDisabled>, "IsAutoSleepDisabled"}, {70, nullptr, "ReportMultimediaError"}, @@ -347,6 +347,12 @@ Result ISelfController::IsAutoSleepDisabled(Out<bool> out_is_auto_sleep_disabled R_SUCCEED(); } +Result ISelfController::IsIlluminanceAvailable(Out<bool> out_is_illuminance_available) { + LOG_WARNING(Service_AM, "(stubbed)"); + *out_is_illuminance_available = false; + R_SUCCEED(); +} + Result ISelfController::SetInputDetectionPolicy(InputDetectionPolicy input_detection_policy) { LOG_WARNING(Service_AM, "(STUBBED) called"); R_SUCCEED(); diff --git a/src/core/hle/service/am/service/self_controller.h b/src/core/hle/service/am/service/self_controller.h index 86cd9f1118..b6403abde2 100644 --- a/src/core/hle/service/am/service/self_controller.h +++ b/src/core/hle/service/am/service/self_controller.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project @@ -60,6 +60,7 @@ private: Result ReportUserIsActive(); Result SetAutoSleepDisabled(bool is_auto_sleep_disabled); Result IsAutoSleepDisabled(Out<bool> out_is_auto_sleep_disabled); + Result IsIlluminanceAvailable(Out<bool> out_is_illuminance_available); Result SetInputDetectionPolicy(InputDetectionPolicy input_detection_policy); Result GetAccumulatedSuspendedTickValue(Out<u64> out_accumulated_suspended_tick_value); Result GetAccumulatedSuspendedTickChangedEvent(OutCopyHandle<Kernel::KReadableEvent> out_event); |
