mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 02:45:45 +00:00
HLE/FS: Return the proper error codes when opening files.
This commit is contained in:
parent
802ef6d099
commit
95b34f8081
7 changed files with 43 additions and 28 deletions
|
@ -20,8 +20,8 @@ std::string IVFCArchive::GetName() const {
|
|||
return "IVFC";
|
||||
}
|
||||
|
||||
std::unique_ptr<FileBackend> IVFCArchive::OpenFile(const Path& path, const Mode mode) const {
|
||||
return Common::make_unique<IVFCFile>(romfs_file, data_offset, data_size);
|
||||
ResultVal<std::unique_ptr<FileBackend>> IVFCArchive::OpenFile(const Path& path, const Mode mode) const {
|
||||
return MakeResult<std::unique_ptr<FileBackend>>(Common::make_unique<IVFCFile>(romfs_file, data_offset, data_size));
|
||||
}
|
||||
|
||||
ResultCode IVFCArchive::DeleteFile(const Path& path) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue