diff options
author | bunnei <bunneidev@gmail.com> | 2015-04-04 04:16:50 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-04-04 04:16:50 +0200 |
commit | 3fd2cc566b38d34c587140ce3dbc580f85e34717 (patch) | |
tree | f2e5d7e08062f4bbd49ea618bb78c1de71634763 /src/core/hle/service/nim_u.cpp | |
parent | Merge pull request #677 from lioncash/cp15 (diff) | |
parent | Services: Stubs and minor changes (diff) | |
download | yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar.gz yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar.bz2 yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar.lz yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar.xz yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.tar.zst yuzu-3fd2cc566b38d34c587140ce3dbc580f85e34717.zip |
Diffstat (limited to 'src/core/hle/service/nim_u.cpp')
-rw-r--r-- | src/core/hle/service/nim_u.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/core/hle/service/nim_u.cpp b/src/core/hle/service/nim_u.cpp new file mode 100644 index 000000000..a87d17ef0 --- /dev/null +++ b/src/core/hle/service/nim_u.cpp @@ -0,0 +1,46 @@ +// Copyright 2015 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/hle.h" +#include "core/hle/service/nim_u.h" + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// Namespace NIM_U + +namespace NIM_U { + +/** + * NIM_U::CheckSysUpdateAvailable service function + * Inputs: + * 1 : None + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + * 2 : flag, 0 = no system update available, 1 = system update available. + */ +static void CheckSysUpdateAvailable(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 0; // No update available + + LOG_WARNING(Service_NWM, "(STUBBED) called"); +} + +const Interface::FunctionInfo FunctionTable[] = { + {0x00010000, nullptr, "StartSysUpdate"}, + {0x00020000, nullptr, "GetUpdateDownloadProgress"}, + {0x00040000, nullptr, "FinishTitlesInstall"}, + {0x00050000, nullptr, "CheckForSysUpdateEvent"}, + {0x00090000, CheckSysUpdateAvailable, "CheckSysUpdateAvailable"}, + {0x000A0000, nullptr, "GetState"}, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// Interface class + +Interface::Interface() { + Register(FunctionTable); +} + +} // namespace |