1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 04:12:02 +00:00

stratosphere: fix svcExitThread usage

This commit is contained in:
Michael Scire 2019-03-05 07:50:27 -08:00
parent 4e95397ed5
commit b4b1208222
5 changed files with 10 additions and 5 deletions

View file

@ -223,8 +223,6 @@ void Utils::InitializeThreadFunc(void *args) {
hidExit();
}
svcExitThread();
}
bool Utils::IsSdInitialized() {

View file

@ -39,7 +39,6 @@ static void RunTaskThreadFunc(void *arg) {
}
/* Finish. */
svcExitThread();
}
static void RunTask(IFatalTask *task, u32 stack_size = 0x4000) {

View file

@ -112,6 +112,15 @@ Result ShowFatalTask::PrepareScreenForDrawing() {
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. */
u32 display_width, display_height;
if (R_FAILED((rc = viGetDisplayLogicalResolution(&this->display, &display_width, &display_height)))) {

@ -1 +1 @@
Subproject commit 82c67a62d69f04f656da495c696f264eea6fa63a
Subproject commit 0fbc0e2f468762de62d2b14d6495247d04e80bc3

View file

@ -28,5 +28,4 @@ void ProcessTracking::MainLoop(void *arg) {
process_waiter->Process();
delete process_waiter;
svcExitThread();
}