4 changed files with 60 additions and 29 deletions
-
2src/core/CMakeLists.txt
-
34src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp
-
23src/core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h
-
30src/core/hle/service/filesystem/fsp/fsp_srv.cpp
@ -0,0 +1,34 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|||
|
|||
#include "core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h"
|
|||
#include "core/hle/service/ipc_helpers.h"
|
|||
|
|||
namespace Service::FileSystem { |
|||
|
|||
IMultiCommitManager::IMultiCommitManager(Core::System& system_) |
|||
: ServiceFramework{system_, "IMultiCommitManager"} { |
|||
static const FunctionInfo functions[] = { |
|||
{1, &IMultiCommitManager::Add, "Add"}, |
|||
{2, &IMultiCommitManager::Commit, "Commit"}, |
|||
}; |
|||
RegisterHandlers(functions); |
|||
} |
|||
|
|||
IMultiCommitManager::~IMultiCommitManager() = default; |
|||
|
|||
void IMultiCommitManager::Add(HLERequestContext& ctx) { |
|||
LOG_WARNING(Service_FS, "(STUBBED) called"); |
|||
|
|||
IPC::ResponseBuilder rb{ctx, 2}; |
|||
rb.Push(ResultSuccess); |
|||
} |
|||
|
|||
void IMultiCommitManager::Commit(HLERequestContext& ctx) { |
|||
LOG_WARNING(Service_FS, "(STUBBED) called"); |
|||
|
|||
IPC::ResponseBuilder rb{ctx, 2}; |
|||
rb.Push(ResultSuccess); |
|||
} |
|||
|
|||
} // namespace Service::FileSystem
|
|||
@ -0,0 +1,23 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/file_sys/vfs/vfs.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service::FileSystem { |
|||
|
|||
class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> { |
|||
public: |
|||
explicit IMultiCommitManager(Core::System& system_); |
|||
~IMultiCommitManager() override; |
|||
|
|||
private: |
|||
void Add(HLERequestContext& ctx); |
|||
void Commit(HLERequestContext& ctx); |
|||
|
|||
FileSys::VirtualFile backend; |
|||
}; |
|||
|
|||
} // namespace Service::FileSystem |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue