mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-05 01:03:43 -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
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue