aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/Functions/InGame/SystemManager/Terminate.vb
blob: 43094525cdc1e1fb70f2c0c2ca3df2ad560247df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Module Terminate
    Public Sub TerminateShiftOS()
        NewLine("Stopping the Window Manager...")
        StopG()
        Console_Full()
        If Strings.OnceInfo(6) = "story" Then
            NewLine("Saving game...")
            SaveGame()
        End If
        Cursor.Show()
        NewLine("Shutting down...")
        ShiftOSMenu.Show()
        Console.Close()
        Shifter.Close()
    End Sub
End Module