[FS] OpenArchiveHandle returns Result<T, E>

This commit is contained in:
wheremyfoodat 2023-05-16 20:49:31 +03:00
parent b817c72a9c
commit 2f5bb45d58
3 changed files with 10 additions and 10 deletions

View file

@ -31,7 +31,7 @@ class FSService {
ExtSaveDataArchive sharedExtSaveData_cart;
ArchiveBase* getArchiveFromID(u32 id, const FSPath& archivePath);
std::optional<Handle> openArchiveHandle(u32 archiveID, const FSPath& path);
Rust::Result<Handle, FSResult> openArchiveHandle(u32 archiveID, const FSPath& path);
Rust::Result<Handle, FSResult> openDirectoryHandle(ArchiveBase* archive, const FSPath& path);
std::optional<Handle> openFileHandle(ArchiveBase* archive, const FSPath& path, const FSPath& archivePath, const FilePerms& perms);
FSPath readPath(u32 type, u32 pointer, u32 size);