stratosphere: fix svcExitThread usage
This commit is contained in:
@@ -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)))) {
|
||||||
|
|||||||
Submodule stratosphere/libstratosphere updated: 82c67a62d6...0fbc0e2f46
@@ -28,5 +28,4 @@ void ProcessTracking::MainLoop(void *arg) {
|
|||||||
process_waiter->Process();
|
process_waiter->Process();
|
||||||
|
|
||||||
delete process_waiter;
|
delete process_waiter;
|
||||||
svcExitThread();
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user