mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-17 23:12:17 +00:00
SM: Fix svcGetSystemInfo bug, now works on 5.0.2.
This commit is contained in:
parent
16ccc8a241
commit
44127faa17
@ -59,6 +59,7 @@ int main(int argc, char **argv)
|
||||
Handle smm_h;
|
||||
if (R_FAILED(Registration::RegisterServiceForSelf(smEncodeName("sm:m"), 1, false, &smm_h))) {
|
||||
/* TODO: Panic. */
|
||||
while (1) { }
|
||||
}
|
||||
|
||||
server_manager->add_waitable(new ExistingPortServer<ManagerService>(smm_h, 1));
|
||||
|
@ -117,7 +117,7 @@ void Registration::CacheInitialProcessIdLimits() {
|
||||
}
|
||||
if (kernelAbove500()) {
|
||||
svcGetSystemInfo(&g_initial_process_id_low, 2, 0, 0);
|
||||
svcGetSystemInfo(&g_initial_process_id_high, 2, 0, 0);
|
||||
svcGetSystemInfo(&g_initial_process_id_high, 2, 0, 1);
|
||||
} else {
|
||||
g_initial_process_id_low = 0;
|
||||
g_initial_process_id_high = REGISTRATION_INITIAL_PID_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user