summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/romfs_factory.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-12 10:47:32 +0100
committerLioncash <mathew1800@gmail.com>2019-11-12 13:55:39 +0100
commit86c397dd6e55202af02edd1606e4dcbdf64d0c8a (patch)
tree15fb011e0b39236ec784f0a5a341d0d73a3e2ce0 /src/core/file_sys/romfs_factory.cpp
parentresult: Add default error code for the ResultCode(-1) case (diff)
downloadyuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar.gz
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar.bz2
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar.lz
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar.xz
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.tar.zst
yuzu-86c397dd6e55202af02edd1606e4dcbdf64d0c8a.zip
Diffstat (limited to 'src/core/file_sys/romfs_factory.cpp')
-rw-r--r--src/core/file_sys/romfs_factory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp
index 4bd2e6183..418a39a7e 100644
--- a/src/core/file_sys/romfs_factory.cpp
+++ b/src/core/file_sys/romfs_factory.cpp
@@ -71,12 +71,12 @@ ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage,
if (res == nullptr) {
// TODO(DarkLordZach): Find the right error code to use here
- return ResultCode(-1);
+ return RESULT_UNKNOWN;
}
const auto romfs = res->GetRomFS();
if (romfs == nullptr) {
// TODO(DarkLordZach): Find the right error code to use here
- return ResultCode(-1);
+ return RESULT_UNKNOWN;
}
return MakeResult<VirtualFile>(romfs);
}