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

@@ -199,7 +199,7 @@ namespace ams::lm::srv {
R_TRY(fs::WriteFile(file, 0, std::addressof(header), sizeof(header), fs::WriteOption::Flush));
return ResultSuccess();
R_SUCCEED();
}
bool WriteLogFileHeader(const char *path) {
@@ -215,7 +215,7 @@ namespace ams::lm::srv {
/* Write the data. */
R_TRY(fs::WriteFile(file, offset, data, size, fs::WriteOption::Flush));
return ResultSuccess();
R_SUCCEED();
}
bool WriteLogFileBody(const char *path, s64 offset, const u8 *data, size_t size) {