From b34a7964909fdcfca5eb2735f4b7b1fbe685421d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 10 Oct 2024 02:44:19 -0700 Subject: [PATCH] pm: add new 19.0.0 commands This is functionally correct, but I have no idea what these are meant to represent. These functions are completely unused on NX. --- .../stratosphere/pm/impl/pm_boot_mode_interface.hpp | 8 +++++--- libvapours/include/vapours/results/pm_results.hpp | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libstratosphere/include/stratosphere/pm/impl/pm_boot_mode_interface.hpp b/libstratosphere/include/stratosphere/pm/impl/pm_boot_mode_interface.hpp index a34f2272..66faf57e 100644 --- a/libstratosphere/include/stratosphere/pm/impl/pm_boot_mode_interface.hpp +++ b/libstratosphere/include/stratosphere/pm/impl/pm_boot_mode_interface.hpp @@ -19,8 +19,10 @@ #include #include -#define AMS_PM_I_BOOT_MODE_INTERFACE_INTERFACE_INFO(C, H) \ - AMS_SF_METHOD_INFO(C, H, 0, void, GetBootMode, (sf::Out out), (out)) \ - AMS_SF_METHOD_INFO(C, H, 1, void, SetMaintenanceBoot, (), ()) +#define AMS_PM_I_BOOT_MODE_INTERFACE_INTERFACE_INFO(C, H) \ + AMS_SF_METHOD_INFO(C, H, 0, void, GetBootMode, (sf::Out out), (out)) \ + AMS_SF_METHOD_INFO(C, H, 1, void, SetMaintenanceBoot, (), ()) \ + AMS_SF_METHOD_INFO(C, H, 2, void, GetUnknown, (sf::Out out), (out)) \ + AMS_SF_METHOD_INFO(C, H, 3, Result, SetUnknown, (u32 val), (val)) AMS_SF_DEFINE_INTERFACE(ams::pm::impl, IBootModeInterface, AMS_PM_I_BOOT_MODE_INTERFACE_INTERFACE_INFO, 0x96D01649) diff --git a/libvapours/include/vapours/results/pm_results.hpp b/libvapours/include/vapours/results/pm_results.hpp index 4c9e51ad..4e4c0e24 100644 --- a/libvapours/include/vapours/results/pm_results.hpp +++ b/libvapours/include/vapours/results/pm_results.hpp @@ -27,5 +27,6 @@ namespace ams::pm { R_DEFINE_ERROR_RESULT(DebugHookInUse, 4); R_DEFINE_ERROR_RESULT(ApplicationRunning, 5); R_DEFINE_ERROR_RESULT(InvalidSize, 6); + R_DEFINE_ERROR_RESULT(Unknown7, 7); }