VERY experimental Nintendo Switch 2 emulator
C++
[core/hle/service/am] Stub ISelfController::IsIlluminanceAvailable (#4163)
lizzie5b4dc32c1ad5
diff --git a/src/core/hle/service/am/service/self_controller.cpp b/src/core/hle/service/am/service/self_controller.cppindex 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_disabledR_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.hindex 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);