summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applet_common_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/applet_common_functions.cpp')
-rw-r--r--src/core/hle/service/am/applet_common_functions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applet_common_functions.cpp b/src/core/hle/service/am/applet_common_functions.cpp
index a5c54ce87..130614ae5 100644
--- a/src/core/hle/service/am/applet_common_functions.cpp
+++ b/src/core/hle/service/am/applet_common_functions.cpp
@@ -31,6 +31,7 @@ IAppletCommonFunctions::IAppletCommonFunctions(Core::System& system_,
{90, nullptr, "OpenNamedChannelAsParent"},
{91, nullptr, "OpenNamedChannelAsChild"},
{100, nullptr, "SetApplicationCoreUsageMode"},
+ {300, &IAppletCommonFunctions::GetCurrentApplicationId, "GetCurrentApplicationId"},
};
// clang-format on
@@ -51,4 +52,12 @@ void IAppletCommonFunctions::SetCpuBoostRequestPriority(HLERequestContext& ctx)
rb.Push(ResultSuccess);
}
+void IAppletCommonFunctions::GetCurrentApplicationId(HLERequestContext& ctx) {
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 4};
+ rb.Push(ResultSuccess);
+ rb.Push<u64>(system.GetApplicationProcessProgramID() & ~0xFFFULL);
+}
+
} // namespace Service::AM