mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-02-06 19:02:17 +03:00
fssrv: IFileSystemProxy: Implement OpenReadOnlySaveDataFileSystem
Forward this function to OpenSaveDataFileSystem for now. A proper implementation should wrap the underlying filesystem with nn::fs::ReadOnlyFileSystem.
This commit is contained in:
parent
25b9bb00fd
commit
4ea0b0e1e5
@ -61,6 +61,12 @@ namespace skyline::service::fssrv {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IFileSystemProxy::OpenReadOnlySaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
// Forward to OpenSaveDataFileSystem for now.
|
||||||
|
// TODO: This should wrap the underlying filesystem with nn::fs::ReadOnlyFileSystem.
|
||||||
|
return OpenSaveDataFileSystem(session, request, response);
|
||||||
|
}
|
||||||
|
|
||||||
Result IFileSystemProxy::OpenDataStorageByCurrentProcess(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IFileSystemProxy::OpenDataStorageByCurrentProcess(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
if (!state.loader->romFs)
|
if (!state.loader->romFs)
|
||||||
return result::NoRomFsAvailable;
|
return result::NoRomFsAvailable;
|
||||||
|
@ -80,6 +80,13 @@ namespace skyline::service::fssrv {
|
|||||||
*/
|
*/
|
||||||
Result OpenSaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result OpenSaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns a handle to a read-only instance of #IFileSystem
|
||||||
|
* @url https://switchbrew.org/wiki/Filesystem_services#IFileSystem for the requested save data area
|
||||||
|
* @url https://switchbrew.org/wiki/Filesystem_services#OpenReadOnlySaveDataFileSystem
|
||||||
|
*/
|
||||||
|
Result OpenReadOnlySaveDataFileSystem(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns a handle to an instance of #IStorage
|
* @brief Returns a handle to an instance of #IStorage
|
||||||
* @url https://switchbrew.org/wiki/Filesystem_services#IStorage for the application's data storage
|
* @url https://switchbrew.org/wiki/Filesystem_services#IStorage for the application's data storage
|
||||||
@ -102,6 +109,7 @@ namespace skyline::service::fssrv {
|
|||||||
SFUNC(0x1, IFileSystemProxy, SetCurrentProcess),
|
SFUNC(0x1, IFileSystemProxy, SetCurrentProcess),
|
||||||
SFUNC(0x12, IFileSystemProxy, OpenSdCardFileSystem),
|
SFUNC(0x12, IFileSystemProxy, OpenSdCardFileSystem),
|
||||||
SFUNC(0x33, IFileSystemProxy, OpenSaveDataFileSystem),
|
SFUNC(0x33, IFileSystemProxy, OpenSaveDataFileSystem),
|
||||||
|
SFUNC(0x35, IFileSystemProxy, OpenReadOnlySaveDataFileSystem),
|
||||||
SFUNC(0xC8, IFileSystemProxy, OpenDataStorageByCurrentProcess),
|
SFUNC(0xC8, IFileSystemProxy, OpenDataStorageByCurrentProcess),
|
||||||
SFUNC(0xCA, IFileSystemProxy, OpenDataStorageByDataId),
|
SFUNC(0xCA, IFileSystemProxy, OpenDataStorageByDataId),
|
||||||
SFUNC(0x3ED, IFileSystemProxy, GetGlobalAccessLogMode)
|
SFUNC(0x3ED, IFileSystemProxy, GetGlobalAccessLogMode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user