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

@ -91,7 +91,7 @@ namespace ams::osdbg::impl {
FillWithCurrentInfoImpl(info, thread_type.lp64);
break;
default:
return osdbg::ResultUnsupportedThreadVersion();
R_THROW(osdbg::ResultUnsupportedThreadVersion());
}
} else {
/* Read in the thread type. */
@ -107,7 +107,7 @@ namespace ams::osdbg::impl {
FillWithCurrentInfoImpl(info, thread_type.ilp32);
break;
default:
return osdbg::ResultUnsupportedThreadVersion();
R_THROW(osdbg::ResultUnsupportedThreadVersion());
}
}
break;
@ -167,10 +167,10 @@ namespace ams::osdbg::impl {
}
break;
default:
return osdbg::ResultUnsupportedThreadVersion();
R_THROW(osdbg::ResultUnsupportedThreadVersion());
}
return ResultSuccess();
R_SUCCEED();
}
}

View file

@ -42,7 +42,7 @@ namespace ams::osdbg::impl {
*out = is_lp64 ? tlr.lp64.p_thread_type : tlr.ilp32.p_thread_type;
}
return ResultSuccess();
R_SUCCEED();
}
Result GetThreadArgumentAndStackPointer(u64 *out_arg, u64 *out_sp, ThreadInfo *info) {
@ -60,7 +60,7 @@ namespace ams::osdbg::impl {
*out_sp = thread_context.r[13];
}
return ResultSuccess();
R_SUCCEED();
}
void DetectStratosphereThread(ThreadInfo *info) {