ams: use R_SUCCEED, R_THROW globally

This commit is contained in:
Michael Scire
2022-03-26 00:14:36 -07:00
parent e5b1739f65
commit dd78ede99f
370 changed files with 2107 additions and 2107 deletions

View File

@@ -67,7 +67,7 @@ namespace ams::ncm {
/* Set the context path. */
m_context_path.Assign(context_path);
return ResultSuccess();
R_SUCCEED();
}
util::optional<ContentMetaKey> PackageSystemUpdateTask::GetSystemUpdateMetaKey() {
@@ -103,7 +103,7 @@ namespace ams::ncm {
/* Create a new install content meta info. */
*out = InstallContentMetaInfo::MakeUnverifiable(info.GetId(), info.GetSize(), key);
return ResultSuccess();
R_SUCCEED();
}
Result PackageSystemUpdateTask::PrepareInstallContentMetaData() {
@@ -140,12 +140,12 @@ namespace ams::ncm {
/* Check if the info is for meta content. */
if (info.GetType() == ContentType::Meta) {
*out = info;
return ResultSuccess();
R_SUCCEED();
}
}
/* Not found. */
return ncm::ResultContentInfoNotFound();
R_THROW(ncm::ResultContentInfoNotFound());
}
}