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

Method updateLatchedVars

qcommon/src/main/java/jake2/qcommon/exec/Cvar.java:357–369  ·  view source on GitHub ↗

Any variables with latched values will be updated. prev: Cvar.GetLatchedVars();

()

Source from the content-addressed store, hash-verified

355 * prev: Cvar.GetLatchedVars();
356 */
357 public void updateLatchedVars() {
358 for (cvar_t var : cvarMap.values()) {
359 if (var.latched_string == null || var.latched_string.length() == 0)
360 continue;
361 var.string = var.latched_string;
362 var.latched_string = null;
363 var.value = Lib.atof(var.string);
364 if (var.name.equals("game")) {
365 FS.SetGamedir(var.string);
366 FS.ExecAutoexec();
367 }
368 }
369 }
370
371 /**
372 * Returns an info string containing all the CVAR_USERINFO cvars.

Callers 1

initializeServerCvarsMethod · 0.80

Calls 4

atofMethod · 0.95
SetGamedirMethod · 0.95
ExecAutoexecMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected