2018-01-16 19:20:12 -08: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 12:42:15 -07:00
|
|
|
#include "core/file_sys/romfs_factory.h"
|
|
|
|
#include "core/file_sys/savedata_factory.h"
|
|
|
|
#include "core/file_sys/sdmc_factory.h"
|
2018-01-16 19:20:12 -08:00
|
|
|
#include "core/hle/result.h"
|
2018-01-20 18:32:36 -08:00
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
class FileSystemBackend;
|
|
|
|
} // namespace FileSys
|
2018-01-16 19:20:12 -08:00
|
|
|
|
|
|
|
namespace Service {
|
2018-01-20 18:32:36 -08:00
|
|
|
|
|
|
|
namespace SM {
|
|
|
|
class ServiceManager;
|
|
|
|
} // namespace SM
|
|
|
|
|
2018-01-16 19:20:12 -08:00
|
|
|
namespace FileSystem {
|
|
|
|
|
2018-07-17 12:42:15 -07: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 10:03:58 -08:00
|
|
|
|
2018-01-16 19:20:12 -08:00
|
|
|
/// Registers all Filesystem services with the specified service manager.
|
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
|
|
|
|
2018-01-20 18:32:36 -08:00
|
|
|
} // namespace FileSystem
|
2018-01-16 19:20:12 -08:00
|
|
|
} // namespace Service
|