[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

@ -18,7 +18,7 @@ FileDescriptor SDMCArchive::openFile(const FSPath& path, const FilePerms& perms)
Rust::Result<ArchiveBase*, FSResult> SDMCArchive::openArchive(const FSPath& path) {
printf("SDMCArchive::OpenArchive: Failed\n");
return Ok((ArchiveBase*)nullptr);
return Err(FSResult::NotFormatted);
}
std::optional<u32> SDMCArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) {