def restart_os(): try: Kernel.Prepare_For_shutdown() time.sleep(1) Kernel.startup() except AttributeError: Kernel.Crash("Second_Restart_Error", True)
def Boot(): DoBoot = open("Cos/Cos64/Settings/Boot.ini", "r") DoBootContents = DoBoot.read() DoBoot.close() if DoBootContents == "Boot=True": DoBootFormat = True else: DoBootFormat = False if DoBootFormat: print("Press ] to open boot-settings") count = 0 while count != 500: Hotkey.While_Boot() count += 1 time.sleep(0.00000001) Kernel.Setup() Kernel.startup() if not DoBootFormat: CrashHandler.CrashHandler()
def Start(): Kernel.Setup() Kernel.startup()
def restart_os(): time.sleep(1) Kernel.startup()
def restart_os(): Kernel.Prepare_For_shutdown() time.sleep(1) Kernel.startup()