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;
}
}
extern float const UIWebViewScalesToFitScale;
// }}}
// extern "C" *(); {{{
+extern "C" mach_port_t SBSSpringBoardServerPort();
extern "C" UIImage *_UIImageWithName(NSString *name);
extern "C" void UISetColor(CGColorRef color);
// }}}
link += -framework IOKit
link += -framework JavaScriptCore
link += -framework QuartzCore
+link += -framework SpringBoardServices
link += -framework SystemConfiguration
link += -framework WebCore
link += -framework WebKit