mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-23 11:10:56 +00:00
29 lines
692 B
C
29 lines
692 B
C
|
/// \file
|
||
|
/// \brief Support to find files
|
||
|
|
||
|
#ifndef __FILESRCH_H__
|
||
|
#define __FILESRCH_H__
|
||
|
|
||
|
#include "doomdef.h"
|
||
|
#include "d_netfil.h"
|
||
|
|
||
|
/** \brief The filesearch function
|
||
|
|
||
|
This function search files, manly WADs and return back the status of the file
|
||
|
|
||
|
\param filename the file to look for
|
||
|
\param startpath where to start look from
|
||
|
\param wantedmd5sum want to check with MD5
|
||
|
\param completepath want to return the complete path of the file?
|
||
|
\param maxsearchdepth the max depth to search for the file
|
||
|
|
||
|
\return filestatus_t
|
||
|
|
||
|
|
||
|
*/
|
||
|
|
||
|
filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *wantedmd5sum,
|
||
|
boolean completepath, int maxsearchdepth);
|
||
|
|
||
|
#endif // __FILESRCH_H__
|