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

Method NextPath

qcommon/src/main/java/jake2/qcommon/filesystem/FS.java:746–763  ·  view source on GitHub ↗

Allows enumerating all of the directories in the search path

(String prevpath)

Source from the content-addressed store, hash-verified

744 * Allows enumerating all of the directories in the search path
745 */
746 public static String NextPath(String prevpath) {
747
748 if (prevpath == null || prevpath.length() == 0)
749 return fs_gamedir;
750
751 String dir = fs_gamedir;
752 for (SearchPath s : searchPaths) {
753 if (s.pack != null)
754 continue;
755
756 if (prevpath.equals(dir))
757 return s.filename;
758
759 dir = s.filename;
760 }
761
762 return null;
763 }
764
765 /*
766 * InitFilesystem

Callers 1

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected