Any variables with latched values will be updated. prev: Cvar.GetLatchedVars();
()
| 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. |
no test coverage detected