mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
creport: pass user break result directly
This commit is contained in:
parent
227a1d938d
commit
803e91a8c4
1 changed files with 1 additions and 6 deletions
|
@ -251,13 +251,8 @@ namespace sts::creport {
|
||||||
this->result = ResultCreportUserBreak;
|
this->result = ResultCreportUserBreak;
|
||||||
/* Try to parse out the user break result. */
|
/* Try to parse out the user break result. */
|
||||||
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_500) {
|
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_500) {
|
||||||
Result user_result = ResultSuccess;
|
|
||||||
if (IsAddressReadable(this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result))) {
|
if (IsAddressReadable(this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result))) {
|
||||||
svcReadDebugProcessMemory(&user_result, this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result));
|
svcReadDebugProcessMemory(&this->result, this->debug_handle, d.info.exception.specific.user_break.address, sizeof(this->result));
|
||||||
}
|
|
||||||
/* Only copy over the user result if it gives us information (as by default nnSdk uses the success code, which is confusing). */
|
|
||||||
if (R_FAILED(user_result)) {
|
|
||||||
this->result = user_result;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue