Allows enumerating all of the directories in the search path
(String prevpath)
| 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 |
no test coverage detected