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

@@ -148,7 +148,7 @@ namespace ams::mitm::bpc {
/* NOTE: Preferred reboot type will be parsed from settings later on. */
g_reboot_type = RebootType::ToPayload;
return ResultSuccess();
R_SUCCEED();
}
Result DetectPreferredRebootFunctionality() {
@@ -163,7 +163,7 @@ namespace ams::mitm::bpc {
g_reboot_type = RebootType::ToPayload;
}
return ResultSuccess();
R_SUCCEED();
}
}

View File

@@ -22,12 +22,12 @@ namespace ams::mitm::bpc {
Result BpcMitmService::RebootSystem() {
R_UNLESS(bpc::IsRebootManaged(), sm::mitm::ResultShouldForwardToSession());
bpc::RebootSystem();
return ResultSuccess();
R_SUCCEED();
}
Result BpcMitmService::ShutdownSystem() {
bpc::ShutdownSystem();
return ResultSuccess();
R_SUCCEED();
}
}