Browse Source
Merge pull request #641 from purpasmart96/service_stubs
Merge pull request #641 from purpasmart96/service_stubs
Services: Stubs and minor changespull/15/merge
20 changed files with 409 additions and 68 deletions
-
2src/common/logging/backend.cpp
-
2src/common/logging/log.h
-
2src/core/CMakeLists.txt
-
74src/core/hle/service/apt/apt.cpp
-
49src/core/hle/service/apt/apt.h
-
6src/core/hle/service/apt/apt_a.cpp
-
4src/core/hle/service/cfg/cfg.cpp
-
4src/core/hle/service/cfg/cfg.h
-
31src/core/hle/service/dsp_dsp.cpp
-
80src/core/hle/service/fs/fs_user.cpp
-
3src/core/hle/service/gsp_gpu.cpp
-
6src/core/hle/service/hid/hid.cpp
-
6src/core/hle/service/hid/hid.h
-
46src/core/hle/service/nim_u.cpp
-
23src/core/hle/service/nim_u.h
-
111src/core/hle/service/nwm_uds.cpp
-
4src/core/hle/service/ptm/ptm.cpp
-
4src/core/hle/service/ptm/ptm.h
-
18src/core/hle/service/service.cpp
-
2src/core/hw/gpu.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
|
|||
@ -0,0 +1,23 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
//////////////////////////////////////////////////////////////////////////////////////////////////// |
|||
// Namespace NIM_U |
|||
|
|||
namespace NIM_U { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue