Rename Hipc to Cmif where appropriate (#3880)
This commit is contained in:
parent
4c3f09644a
commit
11ecff2ff0
149 changed files with 1152 additions and 1153 deletions
|
@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
_baseDirectory = SharedRef<LibHac.FsSrv.Sf.IDirectory>.CreateMove(ref directory);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// Read() -> (u64 count, buffer<nn::fssrv::sf::IDirectoryEntry, 6, 0> entries)
|
||||
public ResultCode Read(ServiceCtx context)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
}
|
||||
}
|
||||
|
||||
[CommandHipc(1)]
|
||||
[CommandCmif(1)]
|
||||
// GetEntryCount() -> u64
|
||||
public ResultCode GetEntryCount(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
_baseFile = SharedRef<LibHac.FsSrv.Sf.IFile>.CreateMove(ref baseFile);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// Read(u32 readOption, u64 offset, u64 size) -> (u64 out_size, buffer<u8, 0x46, 0> out_buf)
|
||||
public ResultCode Read(ServiceCtx context)
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
}
|
||||
}
|
||||
|
||||
[CommandHipc(1)]
|
||||
[CommandCmif(1)]
|
||||
// Write(u32 writeOption, u64 offset, u64 size, buffer<u8, 0x45, 0>)
|
||||
public ResultCode Write(ServiceCtx context)
|
||||
{
|
||||
|
@ -57,14 +57,14 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_baseFile.Get.Write(offset, new InBuffer(data), size, writeOption).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(2)]
|
||||
[CommandCmif(2)]
|
||||
// Flush()
|
||||
public ResultCode Flush(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFile.Get.Flush().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(3)]
|
||||
[CommandCmif(3)]
|
||||
// SetSize(u64 size)
|
||||
public ResultCode SetSize(ServiceCtx context)
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_baseFile.Get.SetSize(size).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(4)]
|
||||
[CommandCmif(4)]
|
||||
// GetSize() -> u64 fileSize
|
||||
public ResultCode GetSize(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return SharedRef<LibHac.FsSrv.Sf.IFileSystem>.CreateCopy(in _fileSystem);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// CreateFile(u32 createOption, u64 size, buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode CreateFile(ServiceCtx context)
|
||||
{
|
||||
|
@ -33,7 +33,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.CreateFile(in name, size, createOption).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1)]
|
||||
[CommandCmif(1)]
|
||||
// DeleteFile(buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode DeleteFile(ServiceCtx context)
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.DeleteFile(in name).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(2)]
|
||||
[CommandCmif(2)]
|
||||
// CreateDirectory(buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode CreateDirectory(ServiceCtx context)
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.CreateDirectory(in name).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(3)]
|
||||
[CommandCmif(3)]
|
||||
// DeleteDirectory(buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode DeleteDirectory(ServiceCtx context)
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.DeleteDirectory(in name).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(4)]
|
||||
[CommandCmif(4)]
|
||||
// DeleteDirectoryRecursively(buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode DeleteDirectoryRecursively(ServiceCtx context)
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.DeleteDirectoryRecursively(in name).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(5)]
|
||||
[CommandCmif(5)]
|
||||
// RenameFile(buffer<bytes<0x301>, 0x19, 0x301> oldPath, buffer<bytes<0x301>, 0x19, 0x301> newPath)
|
||||
public ResultCode RenameFile(ServiceCtx context)
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.RenameFile(in currentName, in newName).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(6)]
|
||||
[CommandCmif(6)]
|
||||
// RenameDirectory(buffer<bytes<0x301>, 0x19, 0x301> oldPath, buffer<bytes<0x301>, 0x19, 0x301> newPath)
|
||||
public ResultCode RenameDirectory(ServiceCtx context)
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.RenameDirectory(in currentName, in newName).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(7)]
|
||||
[CommandCmif(7)]
|
||||
// GetEntryType(buffer<bytes<0x301>, 0x19, 0x301> path) -> nn::fssrv::sf::DirectoryEntryType
|
||||
public ResultCode GetEntryType(ServiceCtx context)
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(8)]
|
||||
[CommandCmif(8)]
|
||||
// OpenFile(u32 mode, buffer<bytes<0x301>, 0x19, 0x301> path) -> object<nn::fssrv::sf::IFile> file
|
||||
public ResultCode OpenFile(ServiceCtx context)
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(9)]
|
||||
[CommandCmif(9)]
|
||||
// OpenDirectory(u32 filter_flags, buffer<bytes<0x301>, 0x19, 0x301> path) -> object<nn::fssrv::sf::IDirectory> directory
|
||||
public ResultCode OpenDirectory(ServiceCtx context)
|
||||
{
|
||||
|
@ -144,14 +144,14 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(10)]
|
||||
[CommandCmif(10)]
|
||||
// Commit()
|
||||
public ResultCode Commit(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_fileSystem.Get.Commit().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(11)]
|
||||
[CommandCmif(11)]
|
||||
// GetFreeSpaceSize(buffer<bytes<0x301>, 0x19, 0x301> path) -> u64 totalFreeSpace
|
||||
public ResultCode GetFreeSpaceSize(ServiceCtx context)
|
||||
{
|
||||
|
@ -164,7 +164,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(12)]
|
||||
[CommandCmif(12)]
|
||||
// GetTotalSpaceSize(buffer<bytes<0x301>, 0x19, 0x301> path) -> u64 totalSize
|
||||
public ResultCode GetTotalSpaceSize(ServiceCtx context)
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(13)]
|
||||
[CommandCmif(13)]
|
||||
// CleanDirectoryRecursively(buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
public ResultCode CleanDirectoryRecursively(ServiceCtx context)
|
||||
{
|
||||
|
@ -186,7 +186,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return (ResultCode)_fileSystem.Get.CleanDirectoryRecursively(in name).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(14)]
|
||||
[CommandCmif(14)]
|
||||
// GetFileTimeStampRaw(buffer<bytes<0x301>, 0x19, 0x301> path) -> bytes<0x20> timestamp
|
||||
public ResultCode GetFileTimeStampRaw(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
_baseStorage = SharedRef<LibHac.FsSrv.Sf.IStorage>.CreateMove(ref baseStorage);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// Read(u64 offset, u64 length) -> buffer<u8, 0x46, 0> buffer
|
||||
public ResultCode Read(ServiceCtx context)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(4)]
|
||||
[CommandCmif(4)]
|
||||
// GetSize() -> u64 size
|
||||
public ResultCode GetSize(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
_baseOperator = SharedRef<LibHac.FsSrv.Sf.IDeviceOperator>.CreateMove(ref baseOperator);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// IsSdCardInserted() -> b8 is_inserted
|
||||
public ResultCode IsSdCardInserted(ServiceCtx context)
|
||||
{
|
||||
|
@ -25,7 +25,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(200)]
|
||||
[CommandCmif(200)]
|
||||
// IsGameCardInserted() -> b8 is_inserted
|
||||
public ResultCode IsGameCardInserted(ServiceCtx context)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(202)]
|
||||
[CommandCmif(202)]
|
||||
// GetGameCardHandle() -> u32 gamecard_handle
|
||||
public ResultCode GetGameCardHandle(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
_baseFileSystemProxy = applicationClient.Fs.Impl.GetFileSystemProxyServiceObject();
|
||||
}
|
||||
|
||||
[CommandHipc(1)]
|
||||
[CommandCmif(1)]
|
||||
// SetCurrentProcess(u64, pid)
|
||||
public ResultCode SetCurrentProcess(ServiceCtx context)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(8)]
|
||||
[CommandCmif(8)]
|
||||
// OpenFileSystemWithId(nn::fssrv::sf::FileSystemType filesystem_type, nn::ApplicationId tid, buffer<bytes<0x301>, 0x19, 0x301> path)
|
||||
// -> object<nn::fssrv::sf::IFileSystem> contentFs
|
||||
public ResultCode OpenFileSystemWithId(ServiceCtx context)
|
||||
|
@ -99,7 +99,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.InvalidInput;
|
||||
}
|
||||
|
||||
[CommandHipc(11)]
|
||||
[CommandCmif(11)]
|
||||
// OpenBisFileSystem(nn::fssrv::sf::Partition partitionID, buffer<bytes<0x301>, 0x19, 0x301>) -> object<nn::fssrv::sf::IFileSystem> Bis
|
||||
public ResultCode OpenBisFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(12)]
|
||||
[CommandCmif(12)]
|
||||
// OpenBisStorage(u32 partitionId) -> object<nn::fssrv::sf::IStorage> bisStorage
|
||||
public ResultCode OpenBisStorage(ServiceCtx context)
|
||||
{
|
||||
|
@ -131,14 +131,14 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(13)]
|
||||
[CommandCmif(13)]
|
||||
// InvalidateBisCache() -> ()
|
||||
public ResultCode InvalidateBisCache(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.InvalidateBisCache().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(18)]
|
||||
[CommandCmif(18)]
|
||||
// OpenSdCardFileSystem() -> object<nn::fssrv::sf::IFileSystem>
|
||||
public ResultCode OpenSdCardFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -152,14 +152,14 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(19)]
|
||||
[CommandCmif(19)]
|
||||
// FormatSdCardFileSystem() -> ()
|
||||
public ResultCode FormatSdCardFileSystem(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.FormatSdCardFileSystem().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(21)]
|
||||
[CommandCmif(21)]
|
||||
// DeleteSaveDataFileSystem(u64 saveDataId) -> ()
|
||||
public ResultCode DeleteSaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -168,7 +168,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.DeleteSaveDataFileSystem(saveDataId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(22)]
|
||||
[CommandCmif(22)]
|
||||
// CreateSaveDataFileSystem(nn::fs::SaveDataAttribute attribute, nn::fs::SaveDataCreationInfo creationInfo, nn::fs::SaveDataMetaInfo metaInfo) -> ()
|
||||
public ResultCode CreateSaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -179,7 +179,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CreateSaveDataFileSystem(in attribute, in creationInfo, in metaInfo).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(23)]
|
||||
[CommandCmif(23)]
|
||||
// CreateSaveDataFileSystemBySystemSaveDataId(nn::fs::SaveDataAttribute attribute, nn::fs::SaveDataCreationInfo creationInfo) -> ()
|
||||
public ResultCode CreateSaveDataFileSystemBySystemSaveDataId(ServiceCtx context)
|
||||
{
|
||||
|
@ -189,7 +189,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CreateSaveDataFileSystemBySystemSaveDataId(in attribute, in creationInfo).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(24)]
|
||||
[CommandCmif(24)]
|
||||
// RegisterSaveDataFileSystemAtomicDeletion(buffer<u64, 5> saveDataIds) -> ()
|
||||
public ResultCode RegisterSaveDataFileSystemAtomicDeletion(ServiceCtx context)
|
||||
{
|
||||
|
@ -199,7 +199,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.RegisterSaveDataFileSystemAtomicDeletion(new InBuffer(saveIdBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(25)]
|
||||
[CommandCmif(25)]
|
||||
// DeleteSaveDataFileSystemBySaveDataSpaceId(u8 spaceId, u64 saveDataId) -> ()
|
||||
public ResultCode DeleteSaveDataFileSystemBySaveDataSpaceId(ServiceCtx context)
|
||||
{
|
||||
|
@ -209,14 +209,14 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.DeleteSaveDataFileSystemBySaveDataSpaceId(spaceId, saveDataId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(26)]
|
||||
[CommandCmif(26)]
|
||||
// FormatSdCardDryRun() -> ()
|
||||
public ResultCode FormatSdCardDryRun(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.FormatSdCardDryRun().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(27)]
|
||||
[CommandCmif(27)]
|
||||
// IsExFatSupported() -> (u8 isSupported)
|
||||
public ResultCode IsExFatSupported(ServiceCtx context)
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(28)]
|
||||
[CommandCmif(28)]
|
||||
// DeleteSaveDataFileSystemBySaveDataAttribute(u8 spaceId, nn::fs::SaveDataAttribute attribute) -> ()
|
||||
public ResultCode DeleteSaveDataFileSystemBySaveDataAttribute(ServiceCtx context)
|
||||
{
|
||||
|
@ -238,7 +238,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.DeleteSaveDataFileSystemBySaveDataAttribute(spaceId, in attribute).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(30)]
|
||||
[CommandCmif(30)]
|
||||
// OpenGameCardStorage(u32 handle, u32 partitionId) -> object<nn::fssrv::sf::IStorage>
|
||||
public ResultCode OpenGameCardStorage(ServiceCtx context)
|
||||
{
|
||||
|
@ -254,7 +254,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(31)]
|
||||
[CommandCmif(31)]
|
||||
// OpenGameCardFileSystem(u32 handle, u32 partitionId) -> object<nn::fssrv::sf::IFileSystem>
|
||||
public ResultCode OpenGameCardFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -270,7 +270,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(32)]
|
||||
[CommandCmif(32)]
|
||||
// ExtendSaveDataFileSystem(u8 spaceId, u64 saveDataId, s64 dataSize, s64 journalSize) -> ()
|
||||
public ResultCode ExtendSaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -282,7 +282,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.ExtendSaveDataFileSystem(spaceId, saveDataId, dataSize, journalSize).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(33)]
|
||||
[CommandCmif(33)]
|
||||
// DeleteCacheStorage(u16 index) -> ()
|
||||
public ResultCode DeleteCacheStorage(ServiceCtx context)
|
||||
{
|
||||
|
@ -291,7 +291,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.DeleteCacheStorage(index).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(34)]
|
||||
[CommandCmif(34)]
|
||||
// GetCacheStorageSize(u16 index) -> (s64 dataSize, s64 journalSize)
|
||||
public ResultCode GetCacheStorageSize(ServiceCtx context)
|
||||
{
|
||||
|
@ -306,7 +306,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(35)]
|
||||
[CommandCmif(35)]
|
||||
// CreateSaveDataFileSystemWithHashSalt(nn::fs::SaveDataAttribute attribute, nn::fs::SaveDataCreationInfo creationInfo, nn::fs::SaveDataMetaInfo metaInfo nn::fs::HashSalt hashSalt) -> ()
|
||||
public ResultCode CreateSaveDataFileSystemWithHashSalt(ServiceCtx context)
|
||||
{
|
||||
|
@ -318,7 +318,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CreateSaveDataFileSystemWithHashSalt(in attribute, in creationInfo, in metaCreateInfo, in hashSalt).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(37)] // 14.0.0+
|
||||
[CommandCmif(37)] // 14.0.0+
|
||||
// CreateSaveDataFileSystemWithCreationInfo2(buffer<nn::fs::SaveDataCreationInfo2, 25> creationInfo) -> ()
|
||||
public ResultCode CreateSaveDataFileSystemWithCreationInfo2(ServiceCtx context)
|
||||
{
|
||||
|
@ -329,7 +329,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CreateSaveDataFileSystemWithCreationInfo2(in creationInfo).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(51)]
|
||||
[CommandCmif(51)]
|
||||
// OpenSaveDataFileSystem(u8 spaceId, nn::fs::SaveDataAttribute attribute) -> object<nn::fssrv::sf::IFileSystem> saveDataFs
|
||||
public ResultCode OpenSaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -345,7 +345,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(52)]
|
||||
[CommandCmif(52)]
|
||||
// OpenSaveDataFileSystemBySystemSaveDataId(u8 spaceId, nn::fs::SaveDataAttribute attribute) -> object<nn::fssrv::sf::IFileSystem> systemSaveDataFs
|
||||
public ResultCode OpenSaveDataFileSystemBySystemSaveDataId(ServiceCtx context)
|
||||
{
|
||||
|
@ -361,7 +361,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(53)]
|
||||
[CommandCmif(53)]
|
||||
// OpenReadOnlySaveDataFileSystem(u8 spaceId, nn::fs::SaveDataAttribute attribute) -> object<nn::fssrv::sf::IFileSystem>
|
||||
public ResultCode OpenReadOnlySaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -377,7 +377,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(57)]
|
||||
[CommandCmif(57)]
|
||||
// ReadSaveDataFileSystemExtraDataBySaveDataSpaceId(u8 spaceId, u64 saveDataId) -> (buffer<nn::fs::SaveDataExtraData, 6> extraData)
|
||||
public ResultCode ReadSaveDataFileSystemExtraDataBySaveDataSpaceId(ServiceCtx context)
|
||||
{
|
||||
|
@ -395,7 +395,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(58)]
|
||||
[CommandCmif(58)]
|
||||
// ReadSaveDataFileSystemExtraData(u64 saveDataId) -> (buffer<nn::fs::SaveDataExtraData, 6> extraData)
|
||||
public ResultCode ReadSaveDataFileSystemExtraData(ServiceCtx context)
|
||||
{
|
||||
|
@ -412,7 +412,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(59)]
|
||||
[CommandCmif(59)]
|
||||
// WriteSaveDataFileSystemExtraData(u8 spaceId, u64 saveDataId, buffer<nn::fs::SaveDataExtraData, 5> extraData) -> ()
|
||||
public ResultCode WriteSaveDataFileSystemExtraData(ServiceCtx context)
|
||||
{
|
||||
|
@ -425,7 +425,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.WriteSaveDataFileSystemExtraData(saveDataId, spaceId, new InBuffer(extraDataBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(60)]
|
||||
[CommandCmif(60)]
|
||||
// OpenSaveDataInfoReader() -> object<nn::fssrv::sf::ISaveDataInfoReader>
|
||||
public ResultCode OpenSaveDataInfoReader(ServiceCtx context)
|
||||
{
|
||||
|
@ -439,7 +439,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(61)]
|
||||
[CommandCmif(61)]
|
||||
// OpenSaveDataInfoReaderBySaveDataSpaceId(u8 spaceId) -> object<nn::fssrv::sf::ISaveDataInfoReader>
|
||||
public ResultCode OpenSaveDataInfoReaderBySaveDataSpaceId(ServiceCtx context)
|
||||
{
|
||||
|
@ -454,7 +454,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(62)]
|
||||
[CommandCmif(62)]
|
||||
// OpenSaveDataInfoReaderOnlyCacheStorage() -> object<nn::fssrv::sf::ISaveDataInfoReader>
|
||||
public ResultCode OpenSaveDataInfoReaderOnlyCacheStorage(ServiceCtx context)
|
||||
{
|
||||
|
@ -468,7 +468,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(64)]
|
||||
[CommandCmif(64)]
|
||||
// OpenSaveDataInternalStorageFileSystem(u8 spaceId, u64 saveDataId) -> object<nn::fssrv::sf::ISaveDataInfoReader>
|
||||
public ResultCode OpenSaveDataInternalStorageFileSystem(ServiceCtx context)
|
||||
{
|
||||
|
@ -484,7 +484,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(65)]
|
||||
[CommandCmif(65)]
|
||||
// UpdateSaveDataMacForDebug(u8 spaceId, u64 saveDataId) -> ()
|
||||
public ResultCode UpdateSaveDataMacForDebug(ServiceCtx context)
|
||||
{
|
||||
|
@ -494,7 +494,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.UpdateSaveDataMacForDebug(spaceId, saveDataId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(66)]
|
||||
[CommandCmif(66)]
|
||||
public ResultCode WriteSaveDataFileSystemExtraDataWithMask(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -509,7 +509,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.WriteSaveDataFileSystemExtraDataWithMask(saveDataId, spaceId, new InBuffer(extraDataBuffer), new InBuffer(maskBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(67)]
|
||||
[CommandCmif(67)]
|
||||
public ResultCode FindSaveDataWithFilter(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -529,7 +529,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(68)]
|
||||
[CommandCmif(68)]
|
||||
public ResultCode OpenSaveDataInfoReaderWithFilter(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -544,7 +544,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(69)]
|
||||
[CommandCmif(69)]
|
||||
public ResultCode ReadSaveDataFileSystemExtraDataBySaveDataAttribute(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -561,7 +561,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(70)]
|
||||
[CommandCmif(70)]
|
||||
public ResultCode WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -576,7 +576,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(in attribute, spaceId, new InBuffer(extraDataBuffer), new InBuffer(maskBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(71)]
|
||||
[CommandCmif(71)]
|
||||
public ResultCode ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -596,7 +596,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(80)]
|
||||
[CommandCmif(80)]
|
||||
public ResultCode OpenSaveDataMetaFile(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt32();
|
||||
|
@ -612,7 +612,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(84)]
|
||||
[CommandCmif(84)]
|
||||
public ResultCode ListAccessibleSaveDataOwnerId(ServiceCtx context)
|
||||
{
|
||||
int startIndex = context.RequestData.ReadInt32();
|
||||
|
@ -630,7 +630,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(100)]
|
||||
[CommandCmif(100)]
|
||||
public ResultCode OpenImageDirectoryFileSystem(ServiceCtx context)
|
||||
{
|
||||
ImageDirectoryId directoryId = (ImageDirectoryId)context.RequestData.ReadInt32();
|
||||
|
@ -644,7 +644,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(101)]
|
||||
[CommandCmif(101)]
|
||||
public ResultCode OpenBaseFileSystem(ServiceCtx context)
|
||||
{
|
||||
BaseFileSystemId fileSystemId = (BaseFileSystemId)context.RequestData.ReadInt32();
|
||||
|
@ -658,7 +658,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(110)]
|
||||
[CommandCmif(110)]
|
||||
public ResultCode OpenContentStorageFileSystem(ServiceCtx context)
|
||||
{
|
||||
ContentStorageId contentStorageId = (ContentStorageId)context.RequestData.ReadInt32();
|
||||
|
@ -672,7 +672,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(120)]
|
||||
[CommandCmif(120)]
|
||||
public ResultCode OpenCloudBackupWorkStorageFileSystem(ServiceCtx context)
|
||||
{
|
||||
CloudBackupWorkStorageId storageId = (CloudBackupWorkStorageId)context.RequestData.ReadInt32();
|
||||
|
@ -686,7 +686,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(130)]
|
||||
[CommandCmif(130)]
|
||||
public ResultCode OpenCustomStorageFileSystem(ServiceCtx context)
|
||||
{
|
||||
CustomStorageId customStorageId = (CustomStorageId)context.RequestData.ReadInt32();
|
||||
|
@ -700,7 +700,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(200)]
|
||||
[CommandCmif(200)]
|
||||
// OpenDataStorageByCurrentProcess() -> object<nn::fssrv::sf::IStorage> dataStorage
|
||||
public ResultCode OpenDataStorageByCurrentProcess(ServiceCtx context)
|
||||
{
|
||||
|
@ -713,7 +713,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(202)]
|
||||
[CommandCmif(202)]
|
||||
// OpenDataStorageByDataId(u8 storageId, nn::ncm::DataId dataId) -> object<nn::fssrv::sf::IStorage> dataStorage
|
||||
public ResultCode OpenDataStorageByDataId(ServiceCtx context)
|
||||
{
|
||||
|
@ -789,7 +789,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
throw new FileNotFoundException($"System archive with titleid {titleId:x16} was not found on Storage {storageId}. Found in {installedStorage}.");
|
||||
}
|
||||
|
||||
[CommandHipc(203)]
|
||||
[CommandCmif(203)]
|
||||
// OpenPatchDataStorageByCurrentProcess() -> object<nn::fssrv::sf::IStorage>
|
||||
public ResultCode OpenPatchDataStorageByCurrentProcess(ServiceCtx context)
|
||||
{
|
||||
|
@ -802,7 +802,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(205)]
|
||||
[CommandCmif(205)]
|
||||
// OpenDataStorageWithProgramIndex(u8 program_index) -> object<nn::fssrv::sf::IStorage>
|
||||
public ResultCode OpenDataStorageWithProgramIndex(ServiceCtx context)
|
||||
{
|
||||
|
@ -822,7 +822,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(400)]
|
||||
[CommandCmif(400)]
|
||||
// OpenDataStorageByCurrentProcess() -> object<nn::fssrv::sf::IStorage> dataStorage
|
||||
public ResultCode OpenDeviceOperator(ServiceCtx context)
|
||||
{
|
||||
|
@ -836,7 +836,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(601)]
|
||||
[CommandCmif(601)]
|
||||
public ResultCode QuerySaveDataTotalSize(ServiceCtx context)
|
||||
{
|
||||
long dataSize = context.RequestData.ReadInt64();
|
||||
|
@ -850,13 +850,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(511)]
|
||||
[CommandCmif(511)]
|
||||
public ResultCode NotifySystemDataUpdateEvent(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.NotifySystemDataUpdateEvent().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(523)]
|
||||
[CommandCmif(523)]
|
||||
public ResultCode SimulateDeviceDetectionEvent(ServiceCtx context)
|
||||
{
|
||||
bool signalEvent = context.RequestData.ReadBoolean();
|
||||
|
@ -867,7 +867,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SimulateDeviceDetectionEvent(port, mode, signalEvent).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(602)]
|
||||
[CommandCmif(602)]
|
||||
public ResultCode VerifySaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
ulong saveDataId = context.RequestData.ReadUInt64();
|
||||
|
@ -878,7 +878,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.VerifySaveDataFileSystem(saveDataId, new OutBuffer(readBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(603)]
|
||||
[CommandCmif(603)]
|
||||
public ResultCode CorruptSaveDataFileSystem(ServiceCtx context)
|
||||
{
|
||||
ulong saveDataId = context.RequestData.ReadUInt64();
|
||||
|
@ -886,7 +886,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CorruptSaveDataFileSystem(saveDataId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(604)]
|
||||
[CommandCmif(604)]
|
||||
public ResultCode CreatePaddingFile(ServiceCtx context)
|
||||
{
|
||||
long size = context.RequestData.ReadInt64();
|
||||
|
@ -894,13 +894,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CreatePaddingFile(size).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(605)]
|
||||
[CommandCmif(605)]
|
||||
public ResultCode DeleteAllPaddingFiles(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.DeleteAllPaddingFiles().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(606)]
|
||||
[CommandCmif(606)]
|
||||
public ResultCode GetRightsId(ServiceCtx context)
|
||||
{
|
||||
StorageId storageId = (StorageId)context.RequestData.ReadInt64();
|
||||
|
@ -914,7 +914,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(607)]
|
||||
[CommandCmif(607)]
|
||||
public ResultCode RegisterExternalKey(ServiceCtx context)
|
||||
{
|
||||
RightsId rightsId = context.RequestData.ReadStruct<RightsId>();
|
||||
|
@ -923,13 +923,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.RegisterExternalKey(in rightsId, in accessKey).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(608)]
|
||||
[CommandCmif(608)]
|
||||
public ResultCode UnregisterAllExternalKey(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.UnregisterAllExternalKey().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(609)]
|
||||
[CommandCmif(609)]
|
||||
public ResultCode GetRightsIdByPath(ServiceCtx context)
|
||||
{
|
||||
ref readonly var path = ref FileSystemProxyHelper.GetFspPath(context);
|
||||
|
@ -942,7 +942,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(610)]
|
||||
[CommandCmif(610)]
|
||||
public ResultCode GetRightsIdAndKeyGenerationByPath(ServiceCtx context)
|
||||
{
|
||||
ref readonly var path = ref FileSystemProxyHelper.GetFspPath(context);
|
||||
|
@ -957,7 +957,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(611)]
|
||||
[CommandCmif(611)]
|
||||
public ResultCode SetCurrentPosixTimeWithTimeDifference(ServiceCtx context)
|
||||
{
|
||||
int timeDifference = context.RequestData.ReadInt32();
|
||||
|
@ -967,7 +967,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetCurrentPosixTimeWithTimeDifference(time, timeDifference).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(612)]
|
||||
[CommandCmif(612)]
|
||||
public ResultCode GetFreeSpaceSizeForSaveData(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = context.RequestData.ReadStruct<SaveDataSpaceId>();
|
||||
|
@ -980,7 +980,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(613)]
|
||||
[CommandCmif(613)]
|
||||
public ResultCode VerifySaveDataFileSystemBySaveDataSpaceId(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -992,7 +992,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.VerifySaveDataFileSystemBySaveDataSpaceId(spaceId, saveDataId, new OutBuffer(readBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(614)]
|
||||
[CommandCmif(614)]
|
||||
public ResultCode CorruptSaveDataFileSystemBySaveDataSpaceId(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -1001,7 +1001,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CorruptSaveDataFileSystemBySaveDataSpaceId(spaceId, saveDataId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(615)]
|
||||
[CommandCmif(615)]
|
||||
public ResultCode QuerySaveDataInternalStorageTotalSize(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -1015,7 +1015,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(616)]
|
||||
[CommandCmif(616)]
|
||||
public ResultCode GetSaveDataCommitId(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -1029,7 +1029,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(617)]
|
||||
[CommandCmif(617)]
|
||||
public ResultCode UnregisterExternalKey(ServiceCtx context)
|
||||
{
|
||||
RightsId rightsId = context.RequestData.ReadStruct<RightsId>();
|
||||
|
@ -1037,7 +1037,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.UnregisterExternalKey(in rightsId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(620)]
|
||||
[CommandCmif(620)]
|
||||
public ResultCode SetSdCardEncryptionSeed(ServiceCtx context)
|
||||
{
|
||||
EncryptionSeed encryptionSeed = context.RequestData.ReadStruct<EncryptionSeed>();
|
||||
|
@ -1045,7 +1045,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetSdCardEncryptionSeed(in encryptionSeed).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(630)]
|
||||
[CommandCmif(630)]
|
||||
// SetSdCardAccessibility(u8 isAccessible)
|
||||
public ResultCode SetSdCardAccessibility(ServiceCtx context)
|
||||
{
|
||||
|
@ -1054,7 +1054,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetSdCardAccessibility(isAccessible).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(631)]
|
||||
[CommandCmif(631)]
|
||||
// IsSdCardAccessible() -> u8 isAccessible
|
||||
public ResultCode IsSdCardAccessible(ServiceCtx context)
|
||||
{
|
||||
|
@ -1066,7 +1066,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(702)]
|
||||
[CommandCmif(702)]
|
||||
public ResultCode IsAccessFailureDetected(ServiceCtx context)
|
||||
{
|
||||
ulong processId = context.RequestData.ReadUInt64();
|
||||
|
@ -1079,7 +1079,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(710)]
|
||||
[CommandCmif(710)]
|
||||
public ResultCode ResolveAccessFailure(ServiceCtx context)
|
||||
{
|
||||
ulong processId = context.RequestData.ReadUInt64();
|
||||
|
@ -1087,7 +1087,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.ResolveAccessFailure(processId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(720)]
|
||||
[CommandCmif(720)]
|
||||
public ResultCode AbandonAccessFailure(ServiceCtx context)
|
||||
{
|
||||
ulong processId = context.RequestData.ReadUInt64();
|
||||
|
@ -1095,7 +1095,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.AbandonAccessFailure(processId).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(800)]
|
||||
[CommandCmif(800)]
|
||||
public ResultCode GetAndClearErrorInfo(ServiceCtx context)
|
||||
{
|
||||
Result result = _baseFileSystemProxy.Get.GetAndClearErrorInfo(out FileSystemProxyErrorInfo errorInfo);
|
||||
|
@ -1106,7 +1106,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(810)]
|
||||
[CommandCmif(810)]
|
||||
public ResultCode RegisterProgramIndexMapInfo(ServiceCtx context)
|
||||
{
|
||||
int programCount = context.RequestData.ReadInt32();
|
||||
|
@ -1117,7 +1117,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.RegisterProgramIndexMapInfo(new InBuffer(mapInfoBuffer), programCount).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1000)]
|
||||
[CommandCmif(1000)]
|
||||
public ResultCode SetBisRootForHost(ServiceCtx context)
|
||||
{
|
||||
BisPartitionId partitionId = (BisPartitionId)context.RequestData.ReadInt32();
|
||||
|
@ -1126,7 +1126,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetBisRootForHost(partitionId, in path).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1001)]
|
||||
[CommandCmif(1001)]
|
||||
public ResultCode SetSaveDataSize(ServiceCtx context)
|
||||
{
|
||||
long dataSize = context.RequestData.ReadInt64();
|
||||
|
@ -1135,7 +1135,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetSaveDataSize(dataSize, journalSize).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1002)]
|
||||
[CommandCmif(1002)]
|
||||
public ResultCode SetSaveDataRootPath(ServiceCtx context)
|
||||
{
|
||||
ref readonly var path = ref FileSystemProxyHelper.GetFspPath(context);
|
||||
|
@ -1143,13 +1143,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.SetSaveDataRootPath(in path).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1003)]
|
||||
[CommandCmif(1003)]
|
||||
public ResultCode DisableAutoSaveDataCreation(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.DisableAutoSaveDataCreation().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1004)]
|
||||
[CommandCmif(1004)]
|
||||
// SetGlobalAccessLogMode(u32 mode)
|
||||
public ResultCode SetGlobalAccessLogMode(ServiceCtx context)
|
||||
{
|
||||
|
@ -1160,7 +1160,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1005)]
|
||||
[CommandCmif(1005)]
|
||||
// GetGlobalAccessLogMode() -> u32 logMode
|
||||
public ResultCode GetGlobalAccessLogMode(ServiceCtx context)
|
||||
{
|
||||
|
@ -1171,7 +1171,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1006)]
|
||||
[CommandCmif(1006)]
|
||||
// OutputAccessLogToSdCard(buffer<bytes, 5> log_text)
|
||||
public ResultCode OutputAccessLogToSdCard(ServiceCtx context)
|
||||
{
|
||||
|
@ -1183,13 +1183,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1007)]
|
||||
[CommandCmif(1007)]
|
||||
public ResultCode RegisterUpdatePartition(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.RegisterUpdatePartition().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1008)]
|
||||
[CommandCmif(1008)]
|
||||
public ResultCode OpenRegisteredUpdatePartition(ServiceCtx context)
|
||||
{
|
||||
using var fileSystem = new SharedRef<IFileSystem>();
|
||||
|
@ -1202,7 +1202,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1009)]
|
||||
[CommandCmif(1009)]
|
||||
public ResultCode GetAndClearMemoryReportInfo(ServiceCtx context)
|
||||
{
|
||||
Result result = _baseFileSystemProxy.Get.GetAndClearMemoryReportInfo(out MemoryReportInfo reportInfo);
|
||||
|
@ -1213,7 +1213,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1011)]
|
||||
[CommandCmif(1011)]
|
||||
public ResultCode GetProgramIndexForAccessLog(ServiceCtx context)
|
||||
{
|
||||
Result result = _baseFileSystemProxy.Get.GetProgramIndexForAccessLog(out int programIndex, out int programCount);
|
||||
|
@ -1225,7 +1225,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1012)]
|
||||
[CommandCmif(1012)]
|
||||
public ResultCode GetFsStackUsage(ServiceCtx context)
|
||||
{
|
||||
FsStackUsageThreadType threadType = context.RequestData.ReadStruct<FsStackUsageThreadType>();
|
||||
|
@ -1238,25 +1238,25 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(1013)]
|
||||
[CommandCmif(1013)]
|
||||
public ResultCode UnsetSaveDataRootPath(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.UnsetSaveDataRootPath().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1014)]
|
||||
[CommandCmif(1014)]
|
||||
public ResultCode OutputMultiProgramTagAccessLog(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.OutputMultiProgramTagAccessLog().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1016)]
|
||||
[CommandCmif(1016)]
|
||||
public ResultCode FlushAccessLogOnSdCard(ServiceCtx context)
|
||||
{
|
||||
return (ResultCode)_baseFileSystemProxy.Get.FlushAccessLogOnSdCard().Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1017)]
|
||||
[CommandCmif(1017)]
|
||||
public ResultCode OutputApplicationInfoAccessLog(ServiceCtx context)
|
||||
{
|
||||
ApplicationInfo info = context.RequestData.ReadStruct<ApplicationInfo>();
|
||||
|
@ -1264,7 +1264,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.OutputApplicationInfoAccessLog(in info).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1100)]
|
||||
[CommandCmif(1100)]
|
||||
public ResultCode OverrideSaveDataTransferTokenSignVerificationKey(ServiceCtx context)
|
||||
{
|
||||
byte[] keyBuffer = new byte[context.Request.SendBuff[0].Size];
|
||||
|
@ -1273,7 +1273,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.OverrideSaveDataTransferTokenSignVerificationKey(new InBuffer(keyBuffer)).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1110)]
|
||||
[CommandCmif(1110)]
|
||||
public ResultCode CorruptSaveDataFileSystemByOffset(ServiceCtx context)
|
||||
{
|
||||
SaveDataSpaceId spaceId = (SaveDataSpaceId)context.RequestData.ReadInt64();
|
||||
|
@ -1283,7 +1283,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)_baseFileSystemProxy.Get.CorruptSaveDataFileSystemByOffset(spaceId, saveDataId, offset).Value;
|
||||
}
|
||||
|
||||
[CommandHipc(1200)] // 6.0.0+
|
||||
[CommandCmif(1200)] // 6.0.0+
|
||||
// OpenMultiCommitManager() -> object<nn::fssrv::sf::IMultiCommitManager>
|
||||
public ResultCode OpenMultiCommitManager(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
_baseCommitManager = SharedRef<LibHac.FsSrv.Sf.IMultiCommitManager>.CreateMove(ref baseCommitManager);
|
||||
}
|
||||
|
||||
[CommandHipc(1)] // 6.0.0+
|
||||
[CommandCmif(1)] // 6.0.0+
|
||||
// Add(object<nn::fssrv::sf::IFileSystem>)
|
||||
public ResultCode Add(ServiceCtx context)
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
return (ResultCode)result.Value;
|
||||
}
|
||||
|
||||
[CommandHipc(2)] // 6.0.0+
|
||||
[CommandCmif(2)] // 6.0.0+
|
||||
// Commit()
|
||||
public ResultCode Commit(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
|||
_baseReader = SharedRef<LibHac.FsSrv.Sf.ISaveDataInfoReader>.CreateMove(ref baseReader);
|
||||
}
|
||||
|
||||
[CommandHipc(0)]
|
||||
[CommandCmif(0)]
|
||||
// ReadSaveDataInfo() -> (u64, buffer<unknown, 6>)
|
||||
public ResultCode ReadSaveDataInfo(ServiceCtx context)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue