()
| 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 | * |
no test coverage detected