diff options
author | Sebastian Valle <subv2112@gmail.com> | 2016-11-30 14:04:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 14:04:23 +0100 |
commit | e5a7f2ef29a8dc715ab9670dedb632a02b835372 (patch) | |
tree | 49e48570abc750b3f51e4e5c57ec98fba52c3229 /src/core/hle/service/mic_u.cpp | |
parent | Merge pull request #2233 from Subv/warnings (diff) | |
parent | Set client SDK version to Service APIs (diff) | |
download | yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar.gz yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar.bz2 yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar.lz yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar.xz yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.tar.zst yuzu-e5a7f2ef29a8dc715ab9670dedb632a02b835372.zip |
Diffstat (limited to 'src/core/hle/service/mic_u.cpp')
-rw-r--r-- | src/core/hle/service/mic_u.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/hle/service/mic_u.cpp b/src/core/hle/service/mic_u.cpp index 563341504..1f851d328 100644 --- a/src/core/hle/service/mic_u.cpp +++ b/src/core/hle/service/mic_u.cpp @@ -287,6 +287,24 @@ static void SetAllowShellClosed(Service::Interface* self) { LOG_WARNING(Service_MIC, "(STUBBED) called, allow_shell_closed=%u", allow_shell_closed); } +/** + * MIC_U::SetClientVersion service function + * Inputs: + * 1 : Used SDK Version + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + */ +static void SetClientVersion(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + + const u32 version = cmd_buff[1]; + self->SetVersion(version); + + LOG_WARNING(Service_MIC, "(STUBBED) called, version: 0x%08X", version); + + cmd_buff[1] = RESULT_SUCCESS.raw; // No error +} + const Interface::FunctionInfo FunctionTable[] = { {0x00010042, MapSharedMem, "MapSharedMem"}, {0x00020000, UnmapSharedMem, "UnmapSharedMem"}, @@ -303,7 +321,7 @@ const Interface::FunctionInfo FunctionTable[] = { {0x000D0040, SetClamp, "SetClamp"}, {0x000E0000, GetClamp, "GetClamp"}, {0x000F0040, SetAllowShellClosed, "SetAllowShellClosed"}, - {0x00100040, nullptr, "SetClientSDKVersion"}, + {0x00100040, SetClientVersion, "SetClientVersion"}, }; //////////////////////////////////////////////////////////////////////////////////////////////////// |