summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-06 02:58:11 +0100
committerbunnei <bunneidev@gmail.com>2018-02-06 02:58:11 +0100
commitc83f69841f96d25ba15d4ee8adde527fdeb8400d (patch)
treeb78d959db02cbe88ad34d9a0ecb58d419b892446
parentMerge pull request #164 from ogniK5377/libnx_sm_fix (diff)
downloadyuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.gz
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.bz2
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.lz
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.xz
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.zst
yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.zip
-rw-r--r--src/core/hle/service/am/am.cpp7
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index eb4a04c53..b3341d9ad 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -270,6 +270,7 @@ private:
IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFunctions") {
static const FunctionInfo functions[] = {
{1, &IApplicationFunctions::PopLaunchParameter, "PopLaunchParameter"},
+ {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"},
{21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"},
{22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"},
{66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"},
@@ -299,6 +300,12 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
}
+void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
// Takes an input u32 Result, no output.
// For example, in some cases official apps use this with error 0x2A2 then uses svcBreak.
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index b603c17dd..0f17f8377 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -100,6 +100,7 @@ public:
private:
void PopLaunchParameter(Kernel::HLERequestContext& ctx);
+ void EnsureSaveData(Kernel::HLERequestContext& ctx);
void SetTerminateResult(Kernel::HLERequestContext& ctx);
void GetDesiredLanguage(Kernel::HLERequestContext& ctx);
void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx);