mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 02:42:09 +00:00
fatal: fix sm session usage
This commit is contained in:
parent
f6645387b0
commit
3a8f9114fc
1 changed files with 5 additions and 5 deletions
|
@ -95,10 +95,7 @@ Result ShowFatalTask::PrepareScreenForDrawing() {
|
|||
Result rc = ResultSuccess;
|
||||
|
||||
/* Connect to vi. */
|
||||
DoWithSmSession([&]() {
|
||||
rc = viInitialize(ViServiceType_Manager);
|
||||
});
|
||||
if (R_FAILED(rc)) {
|
||||
if (R_FAILED((rc = viInitialize(ViServiceType_Manager)))) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -181,7 +178,10 @@ Result ShowFatalTask::ShowFatal() {
|
|||
Result rc = ResultSuccess;
|
||||
const FatalConfig *config = GetFatalConfig();
|
||||
|
||||
if (R_FAILED((rc = PrepareScreenForDrawing()))) {
|
||||
DoWithSmSession([&]() {
|
||||
rc = PrepareScreenForDrawing();
|
||||
});
|
||||
if (R_FAILED(rc)) {
|
||||
*(volatile u32 *)(0xCAFEBABE) = rc;
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue