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

@@ -61,7 +61,7 @@ namespace ams::htc::server::driver {
m_manager->SetReceiveBuffer(GetHtclowChannel(channel, m_module_id), receive_buffer, receive_buffer_size);
m_manager->SetSendBuffer(GetHtclowChannel(channel, m_module_id), send_buffer, send_buffer_size);
return ResultSuccess();
R_SUCCEED();
}
void HtclowDriver::Close(htclow::ChannelId channel) {
@@ -84,7 +84,7 @@ namespace ams::htc::server::driver {
/* Finish connecting. */
R_TRY(m_manager->ConnectEnd(GetHtclowChannel(channel, m_module_id), task_id));
return ResultSuccess();
R_SUCCEED();
}
void HtclowDriver::Shutdown(htclow::ChannelId channel) {
@@ -117,7 +117,7 @@ namespace ams::htc::server::driver {
/* Set the output sent size. */
*out = static_cast<s64>(sent);
return ResultSuccess();
R_SUCCEED();
}
Result HtclowDriver::ReceiveInternal(size_t *out, void *dst, size_t dst_size, htclow::ChannelId channel, htclow::ReceiveOption option) {
@@ -173,7 +173,7 @@ namespace ams::htc::server::driver {
/* Set the output received size. */
*out = static_cast<s64>(received);
return ResultSuccess();
R_SUCCEED();
}
htclow::ChannelState HtclowDriver::GetChannelState(htclow::ChannelId channel) {