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

Method ExecAutoexec

qcommon/src/main/java/jake2/qcommon/filesystem/FS.java:567–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

565 * ExecAutoexec
566 */
567 public static void ExecAutoexec() {
568 String dir = fs_userdir;
569
570 String name;
571 if (dir != null && dir.length() > 0) {
572 name = dir + "/autoexec.cfg";
573 } else {
574 name = fs_basedir.string + '/' + Globals.BASEQ2 + "/autoexec.cfg";
575 }
576
577 int canthave = Defines.SFF_SUBDIR | Defines.SFF_HIDDEN
578 | Defines.SFF_SYSTEM;
579
580 if (Sys.FindAll(name, 0, canthave) != null) {
581 Cbuf.AddText("exec autoexec.cfg\n");
582 }
583 }
584
585 /**
586 *

Callers 3

InitMethod · 0.95
Set2Method · 0.95
updateLatchedVarsMethod · 0.95

Calls 2

FindAllMethod · 0.95
AddTextMethod · 0.95

Tested by

no test coverage detected