mirror of https://github.com/yuzu-mirror/yuzu
fsp: Move IMultiCommitManager to a seperate file
parent
380475af32
commit
b7d9eba72b
@ -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
|
Loading…
Reference in New Issue