Initialize client subsystem.
()
| 1561 | * Initialize client subsystem. |
| 1562 | */ |
| 1563 | public static void Init() { |
| 1564 | if (Globals.dedicated.value != 0.0f) |
| 1565 | return; // nothing running on the client |
| 1566 | |
| 1567 | // all archived variables will now be loaded |
| 1568 | |
| 1569 | Console.Init(); //ok |
| 1570 | |
| 1571 | S.Init(); //empty |
| 1572 | VID.Init(); |
| 1573 | |
| 1574 | V.Init(); |
| 1575 | Cmd.AddCommand("cl_drop", args -> CL.Drop()); |
| 1576 | Cmd.AddCommand("cl_shutdown", args -> CL.Shutdown()); |
| 1577 | |
| 1578 | Menu.Init(); |
| 1579 | |
| 1580 | SCR.Init(); |
| 1581 | //Globals.cls.disable_screen = 1.0f; // don't draw yet |
| 1582 | |
| 1583 | CDAudio.Init(); |
| 1584 | InitLocal(); |
| 1585 | IN.Init(); |
| 1586 | |
| 1587 | FS.ExecAutoexec(); |
| 1588 | Cbuf.Execute(); |
| 1589 | } |
| 1590 | |
| 1591 | /** |
| 1592 | * Called after an ERR_DROP was thrown. |