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

Method FindFirst

qcommon/src/main/java/jake2/qcommon/sys/Sys.java:194–208  ·  view source on GitHub ↗
(String path, int musthave, int canthave)

Source from the content-addressed store, hash-verified

192
193 // ok.
194 public static File FindFirst(String path, int musthave, int canthave) {
195
196 if (fdir != null)
197 Sys.Error("Sys_BeginFind without close");
198
199 // COM_FilePath (path, findbase);
200
201 fdir = FindAll(path, canthave, musthave);
202 fileindex = 0;
203
204 if (fdir == null)
205 return null;
206
207 return FindNext();
208 }
209
210 public static File FindNext() {
211

Callers 3

SV_WipeSavegameMethod · 0.95
SV_CopySaveGameMethod · 0.95

Calls 3

ErrorMethod · 0.95
FindAllMethod · 0.95
FindNextMethod · 0.95

Tested by

no test coverage detected