5 changed files with 62 additions and 27 deletions
-
2src/core/CMakeLists.txt
-
39src/core/hle/service/ns/download_task_interface.cpp
-
20src/core/hle/service/ns/download_task_interface.h
-
22src/core/hle/service/ns/ns.cpp
-
6src/core/hle/service/ns/ns.h
@ -0,0 +1,39 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|||
|
|||
#include "core/hle/service/cmif_serialization.h"
|
|||
#include "core/hle/service/ns/download_task_interface.h"
|
|||
|
|||
namespace Service::NS { |
|||
|
|||
IDownloadTaskInterface::IDownloadTaskInterface(Core::System& system_) |
|||
: ServiceFramework{system_, "IDownloadTaskInterface"} { |
|||
// clang-format off
|
|||
static const FunctionInfo functions[] = { |
|||
{701, nullptr, "ClearTaskStatusList"}, |
|||
{702, nullptr, "RequestDownloadTaskList"}, |
|||
{703, nullptr, "RequestEnsureDownloadTask"}, |
|||
{704, nullptr, "ListDownloadTaskStatus"}, |
|||
{705, nullptr, "RequestDownloadTaskListData"}, |
|||
{706, nullptr, "TryCommitCurrentApplicationDownloadTask"}, |
|||
{707, D<&IDownloadTaskInterface::EnableAutoCommit>, "EnableAutoCommit"}, |
|||
{708, D<&IDownloadTaskInterface::DisableAutoCommit>, "DisableAutoCommit"}, |
|||
{709, nullptr, "TriggerDynamicCommitEvent"}, |
|||
}; |
|||
// clang-format on
|
|||
|
|||
RegisterHandlers(functions); |
|||
} |
|||
|
|||
IDownloadTaskInterface::~IDownloadTaskInterface() = default; |
|||
|
|||
Result IDownloadTaskInterface::EnableAutoCommit() { |
|||
LOG_WARNING(Service_NS, "(STUBBED) called"); |
|||
R_SUCCEED(); |
|||
} |
|||
Result IDownloadTaskInterface::DisableAutoCommit() { |
|||
LOG_WARNING(Service_NS, "(STUBBED) called"); |
|||
R_SUCCEED(); |
|||
} |
|||
|
|||
} // namespace Service::NS
|
|||
@ -0,0 +1,20 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service::NS { |
|||
|
|||
class IDownloadTaskInterface final : public ServiceFramework<IDownloadTaskInterface> { |
|||
public: |
|||
explicit IDownloadTaskInterface(Core::System& system_); |
|||
~IDownloadTaskInterface() override; |
|||
|
|||
private: |
|||
Result EnableAutoCommit(); |
|||
Result DisableAutoCommit(); |
|||
}; |
|||
|
|||
} // namespace Service::NS |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue