diff options
| author | 2018-02-05 20:58:11 -0500 | |
|---|---|---|
| committer | 2018-02-05 20:58:11 -0500 | |
| commit | c83f69841f96d25ba15d4ee8adde527fdeb8400d (patch) | |
| tree | b78d959db02cbe88ad34d9a0ecb58d419b892446 /src | |
| parent | Merge pull request #164 from ogniK5377/libnx_sm_fix (diff) | |
| download | yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.gz yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.tar.xz yuzu-c83f69841f96d25ba15d4ee8adde527fdeb8400d.zip | |
IApplicationFunctions: Stub out EnsureSaveData.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 7 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 |
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: | |||
| 270 | IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { | 270 | IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { |
| 271 | static const FunctionInfo functions[] = { | 271 | static const FunctionInfo functions[] = { |
| 272 | {1, &IApplicationFunctions::PopLaunchParameter, "PopLaunchParameter"}, | 272 | {1, &IApplicationFunctions::PopLaunchParameter, "PopLaunchParameter"}, |
| 273 | {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"}, | ||
| 273 | {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, | 274 | {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, |
| 274 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, | 275 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, |
| 275 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, | 276 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, |
| @@ -299,6 +300,12 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { | |||
| 299 | LOG_DEBUG(Service_AM, "called"); | 300 | LOG_DEBUG(Service_AM, "called"); |
| 300 | } | 301 | } |
| 301 | 302 | ||
| 303 | void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) { | ||
| 304 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 305 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 306 | rb.Push(RESULT_SUCCESS); | ||
| 307 | } | ||
| 308 | |||
| 302 | void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | 309 | void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { |
| 303 | // Takes an input u32 Result, no output. | 310 | // Takes an input u32 Result, no output. |
| 304 | // For example, in some cases official apps use this with error 0x2A2 then uses svcBreak. | 311 | // 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: | |||
| 100 | 100 | ||
| 101 | private: | 101 | private: |
| 102 | void PopLaunchParameter(Kernel::HLERequestContext& ctx); | 102 | void PopLaunchParameter(Kernel::HLERequestContext& ctx); |
| 103 | void EnsureSaveData(Kernel::HLERequestContext& ctx); | ||
| 103 | void SetTerminateResult(Kernel::HLERequestContext& ctx); | 104 | void SetTerminateResult(Kernel::HLERequestContext& ctx); |
| 104 | void GetDesiredLanguage(Kernel::HLERequestContext& ctx); | 105 | void GetDesiredLanguage(Kernel::HLERequestContext& ctx); |
| 105 | void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); | 106 | void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); |