mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 18:54:14 +01:00 
			
		
		
		
	fsp: Move IMultiCommitManager to a seperate file
This commit is contained in:
		
							parent
							
								
									380475af32
								
							
						
					
					
						commit
						b7d9eba72b
					
				| @ -585,6 +585,8 @@ add_library(core STATIC | ||||
|     hle/service/filesystem/fsp/fs_i_file.h | ||||
|     hle/service/filesystem/fsp/fs_i_filesystem.cpp | ||||
|     hle/service/filesystem/fsp/fs_i_filesystem.h | ||||
|     hle/service/filesystem/fsp/fs_i_multi_commit_manager.cpp | ||||
|     hle/service/filesystem/fsp/fs_i_multi_commit_manager.h | ||||
|     hle/service/filesystem/fsp/fs_i_save_data_info_reader.cpp | ||||
|     hle/service/filesystem/fsp/fs_i_save_data_info_reader.h | ||||
|     hle/service/filesystem/fsp/fs_i_storage.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
 | ||||
| @ -28,6 +28,7 @@ | ||||
| #include "core/file_sys/vfs/vfs.h" | ||||
| #include "core/hle/result.h" | ||||
| #include "core/hle/service/filesystem/filesystem.h" | ||||
| #include "core/hle/service/filesystem/fsp/fs_i_multi_commit_manager.h" | ||||
| #include "core/hle/service/filesystem/fsp/fs_i_filesystem.h" | ||||
| #include "core/hle/service/filesystem/fsp/fs_i_save_data_info_reader.h" | ||||
| #include "core/hle/service/filesystem/fsp/fs_i_storage.h" | ||||
| @ -562,35 +563,6 @@ void FSP_SRV::GetCacheStorageSize(HLERequestContext& ctx) { | ||||
|     rb.Push(s64{0}); | ||||
| } | ||||
| 
 | ||||
| class IMultiCommitManager final : public ServiceFramework<IMultiCommitManager> { | ||||
| public: | ||||
|     explicit IMultiCommitManager(Core::System& system_) | ||||
|         : ServiceFramework{system_, "IMultiCommitManager"} { | ||||
|         static const FunctionInfo functions[] = { | ||||
|             {1, &IMultiCommitManager::Add, "Add"}, | ||||
|             {2, &IMultiCommitManager::Commit, "Commit"}, | ||||
|         }; | ||||
|         RegisterHandlers(functions); | ||||
|     } | ||||
| 
 | ||||
| private: | ||||
|     FileSys::VirtualFile backend; | ||||
| 
 | ||||
|     void Add(HLERequestContext& ctx) { | ||||
|         LOG_WARNING(Service_FS, "(STUBBED) called"); | ||||
| 
 | ||||
|         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|         rb.Push(ResultSuccess); | ||||
|     } | ||||
| 
 | ||||
|     void Commit(HLERequestContext& ctx) { | ||||
|         LOG_WARNING(Service_FS, "(STUBBED) called"); | ||||
| 
 | ||||
|         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|         rb.Push(ResultSuccess); | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
| void FSP_SRV::OpenMultiCommitManager(HLERequestContext& ctx) { | ||||
|     LOG_DEBUG(Service_FS, "called"); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user