mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-13 00:26:35 +00:00
stratosphere: fix svcExitThread usage
This commit is contained in:
parent
4e95397ed5
commit
b4b1208222
5 changed files with 10 additions and 5 deletions
|
@ -223,8 +223,6 @@ void Utils::InitializeThreadFunc(void *args) {
|
||||||
|
|
||||||
hidExit();
|
hidExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
svcExitThread();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Utils::IsSdInitialized() {
|
bool Utils::IsSdInitialized() {
|
||||||
|
|
|
@ -39,7 +39,6 @@ static void RunTaskThreadFunc(void *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Finish. */
|
/* Finish. */
|
||||||
svcExitThread();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void RunTask(IFatalTask *task, u32 stack_size = 0x4000) {
|
static void RunTask(IFatalTask *task, u32 stack_size = 0x4000) {
|
||||||
|
|
|
@ -112,6 +112,15 @@ Result ShowFatalTask::PrepareScreenForDrawing() {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
u64 layer_z = 0xCAFEBABE;
|
||||||
|
if (R_SUCCEEDED((rc = viGetDisplayMaximumZ(&this->display, &layer_z)))) {
|
||||||
|
FILE *f_dumb = fopen("layerz.txt", "w");
|
||||||
|
fprintf(f_dumb, "%016lx\n", layer_z);
|
||||||
|
fclose(f_dumb);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Reset the display magnification to its default value. */
|
/* Reset the display magnification to its default value. */
|
||||||
u32 display_width, display_height;
|
u32 display_width, display_height;
|
||||||
if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) {
|
if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 82c67a62d69f04f656da495c696f264eea6fa63a
|
Subproject commit 0fbc0e2f468762de62d2b14d6495247d04e80bc3
|
|
@ -28,5 +28,4 @@ void ProcessTracking::MainLoop(void *arg) {
|
||||||
process_waiter->Process();
|
process_waiter->Process();
|
||||||
|
|
||||||
delete process_waiter;
|
delete process_waiter;
|
||||||
svcExitThread();
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue