mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 09:25:08 -04:00
ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
parent
e5b1739f65
commit
dd78ede99f
370 changed files with 2107 additions and 2107 deletions
|
@ -49,7 +49,7 @@ namespace ams::erpt::srv {
|
|||
}
|
||||
}
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result MountSystemSaveData() {
|
||||
|
@ -66,7 +66,7 @@ namespace ams::erpt::srv {
|
|||
}
|
||||
} R_END_TRY_CATCH;
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ namespace ams::erpt::srv {
|
|||
Reporter::UpdatePowerOnTime();
|
||||
Reporter::UpdateAwakeTime();
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result InitializeAndStartService() {
|
||||
|
@ -138,7 +138,7 @@ namespace ams::erpt::srv {
|
|||
R_TRY(record->Add(FieldId_ProductModel, model, model_len));
|
||||
R_TRY(Context::SubmitContextRecord(std::move(record)));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result SetRegionSetting(const char *region, u32 region_len) {
|
||||
|
@ -149,17 +149,17 @@ namespace ams::erpt::srv {
|
|||
R_TRY(record->Add(FieldId_RegionSetting, region, region_len));
|
||||
R_TRY(Context::SubmitContextRecord(std::move(record)));
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result SetRedirectNewReportsToSdCard(bool redirect) {
|
||||
Reporter::SetRedirectNewReportsToSdCard(redirect);
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result SetEnabledAutomaticReportCleanup(bool en) {
|
||||
g_automatic_report_cleanup_enabled = en;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
void Wait() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue