MCPcopy Create free account
hub / github.com/demoth/jake2 / Init

Method Init

client/src/main/java/jake2/client/CL.java:1563–1589  ·  view source on GitHub ↗

Initialize client subsystem.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

InitMethod · 0.95

Calls 14

InitMethod · 0.95
InitMethod · 0.95
InitMethod · 0.95
InitMethod · 0.95
AddCommandMethod · 0.95
DropMethod · 0.95
ShutdownMethod · 0.95
InitMethod · 0.95
InitMethod · 0.95
InitMethod · 0.95
InitLocalMethod · 0.95
InitMethod · 0.95

Tested by

no test coverage detected