mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-02 11:00:41 +00:00
3875093c70
adds `gpio` and `i2c` services implements `IApplicationFunctions::SetMediaPlaybackStateForApplicatio` stubs `IBtmSystemCore::GetDiscoveredAudioDevice` implements `nvhost_ctrl_gpu::PmuGetGpuLoad` IOCTL (0x20) implements `PSM::GetBatteryAgePercentage`, `PSM::GetBatteryVoltageState` and `PSM::GetBatteryChargeInfoFields` implements `ISystemSettingsServer::GetConsoleInformationUploadFlag`, `ISystemSettingsServer::SetConsoleInformationUploadFlag`, `ISystemSettingsServer::GetAutomaticApplicationDownloadFlag`, `ISystemSettingsServer::SetAutomaticApplicationDownloadFlag`, `&ISystemSettingsServer::GetUsb30EnableFlag`, `ISystemSettingsServer::SetUsb30EnableFlag` removes `hbl.nsp` specific workarounds Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3996 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev>
34 lines
935 B
C++
34 lines
935 B
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service::PTM {
|
|
|
|
class PSM final : public ServiceFramework<PSM> {
|
|
public:
|
|
explicit PSM(Core::System& system_);
|
|
~PSM() override;
|
|
|
|
private:
|
|
enum class ChargerType : u32 {
|
|
Unplugged = 0,
|
|
RegularCharger = 1,
|
|
LowPowerCharger = 2,
|
|
Unknown = 3,
|
|
};
|
|
void GetBatteryChargePercentage(HLERequestContext& ctx);
|
|
void GetChargerType(HLERequestContext& ctx);
|
|
void OpenSession(HLERequestContext& ctx);
|
|
void GetBatteryVoltageState(HLERequestContext& ctx);
|
|
void GetBatteryAgePercentage(HLERequestContext& ctx);
|
|
void GetBatteryChargeInfoFields(HLERequestContext& ctx);
|
|
};
|
|
|
|
} // namespace Service::PTM
|