2018-01-17 03:20:12 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include "common/common_types.h"
|
2018-07-17 19:42:15 +00:00
|
|
|
#include "core/file_sys/romfs_factory.h"
|
|
|
|
#include "core/file_sys/savedata_factory.h"
|
|
|
|
#include "core/file_sys/sdmc_factory.h"
|
2018-01-17 03:20:12 +00:00
|
|
|
#include "core/hle/result.h"
|
2018-01-21 02:32:36 +00:00
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
class FileSystemBackend;
|
|
|
|
} // namespace FileSys
|
2018-01-17 03:20:12 +00:00
|
|
|
|
|
|
|
namespace Service {
|
2018-01-21 02:32:36 +00:00
|
|
|
|
|
|
|
namespace SM {
|
|
|
|
class ServiceManager;
|
|
|
|
} // namespace SM
|
|
|
|
|
2018-01-17 03:20:12 +00:00
|
|
|
namespace FileSystem {
|
|
|
|
|
2018-07-17 19:42:15 +00:00
|
|
|
ResultCode RegisterRomFS(std::unique_ptr<FileSys::RomFSFactory>&& factory);
|
|
|
|
ResultCode RegisterSaveData(std::unique_ptr<FileSys::SaveDataFactory>&& factory);
|
|
|
|
ResultCode RegisterSDMC(std::unique_ptr<FileSys::SDMCFactory>&& factory);
|
|
|
|
|
|
|
|
// TODO(DarkLordZach): BIS Filesystem
|
|
|
|
// ResultCode RegisterBIS(std::unique_ptr<FileSys::BISFactory>&& factory);
|
|
|
|
|
|
|
|
ResultVal<std::unique_ptr<FileSys::FileSystemBackend>> OpenRomFS(u64 title_id);
|
|
|
|
ResultVal<std::unique_ptr<FileSys::FileSystemBackend>> OpenSaveData(
|
|
|
|
FileSys::SaveDataSpaceId space, FileSys::SaveDataDescriptor save_struct);
|
|
|
|
ResultVal<std::unique_ptr<FileSys::FileSystemBackend>> OpenSDMC();
|
|
|
|
|
|
|
|
// TODO(DarkLordZach): BIS Filesystem
|
|
|
|
// ResultVal<std::unique_ptr<FileSys::FileSystemBackend>> OpenBIS();
|
2018-03-04 18:03:58 +00:00
|
|
|
|
2018-01-17 03:20:12 +00:00
|
|
|
/// Registers all Filesystem services with the specified service manager.
|
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
|
|
|
|
2018-01-21 02:32:36 +00:00
|
|
|
} // namespace FileSystem
|
2018-01-17 03:20:12 +00:00
|
|
|
} // namespace Service
|