diff options
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 872e818..6121e6e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4449,7 +4449,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { break; case 4: - system("reboot"); + if (void (*SBReboot)(mach_port_t) = reinterpret_cast<void (*)(mach_port_t)>(dlsym(RTLD_DEFAULT, "SBReboot"))) + SBReboot(SBSSpringBoardServerPort()); + else + system("reboot"); break; } } |