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

@@ -52,7 +52,7 @@ namespace ams::ncm {
for (auto &registered_path : m_path_list) {
if (registered_path.GetContentId() == content_id) {
registered_path.SetPath(path);
return ResultSuccess();
R_SUCCEED();
}
}
@@ -62,7 +62,7 @@ namespace ams::ncm {
/* Insert the path into the list. */
m_path_list.push_back(*registered_path);
return ResultSuccess();
R_SUCCEED();
}
Result RegisteredHostContent::GetPath(Path *out, const ncm::ContentId &content_id) {
@@ -72,10 +72,10 @@ namespace ams::ncm {
for (const auto &registered_path : m_path_list) {
if (registered_path.GetContentId() == content_id) {
registered_path.GetPath(out);
return ResultSuccess();
R_SUCCEED();
}
}
return ncm::ResultContentNotFound();
R_THROW(ncm::ResultContentNotFound());
}
void RegisteredHostContent::ClearPaths() {