stratosphere: TODO: panic -> std::abort()

This commit is contained in:
Michael Scire 2019-05-10 03:28:18 -07:00
parent 41f5b39f6b
commit 03a425a579
7 changed files with 8 additions and 12 deletions

View file

@ -73,7 +73,7 @@ class AutoCloseMap {
void Close() {
if (this->mapped_address) {
if (R_FAILED(svcUnmapProcessMemory(this->mapped_address, this->process_handle, this->base_address, this->size))) {
/* TODO: panic(). */
std::abort();
}
this->mapped_address = NULL;
}

View file

@ -207,8 +207,7 @@ Result NsoUtils::CalculateNsoLoadExtents(u32 addspace_type, u32 args_size, NsoLo
addspace_size = 0x7FF8000000ULL;
break;
default:
/* TODO: Panic. */
return ResultKernelOutOfMemory;
std::abort();
}
} else {
if (addspace_type & 2) {

View file

@ -94,8 +94,7 @@ class NsoUtils {
case 12:
return "sdk";
default:
/* TODO: Panic. */
return "?";
std::abort();
}
}