Skip to content
Snippets Groups Projects
Select Git revision
  • escape-chars-in-tokenizer
  • remap-fixes
  • next default protected
  • hub-gametype
  • legacy-drawmasked-port
  • floorsprite-clipping
  • custom-map-names
  • zip-dir-refactor
  • r-draw8-cpp-squashed
  • hwportals
  • master
  • fix-slope-plane-distortion
  • fixes-for-2190
  • text-prompt-features
  • wipeloop-rebased
  • secondcolor-merged
  • i_video-refactor-port
  • rotation2
  • fading-callback-thread-fix-master
  • tc
20 results

filesrch.h

Blame
  • Forked from STJr / SRB2
    14014 commits behind the upstream repository.
    toasterbabe's avatar
    toaster authored
    * Instead of needing to press backspace, going back is now handled via an "(up arrow) UP..." entry in the table.
    * Maximum depth is now #define'd instead of dotted around everywhere.
    * Enums!
    * Exec for .txt (with confirmation dialog) and .cfg (without)!
    * Complaints about folders and etc now mention the folder names.
    * A shrinking folder now prevents dir_on[] from going beyond its end.
    20fff0ef
    History
    filesrch.h 1.14 KiB
    /// \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);
    
    #define menudepth 20
    
    extern char menupath[1024];
    extern size_t menupathindex[menudepth];
    extern size_t menudepthleft;
    
    extern char **dirmenu;
    extern size_t sizedirmenu;
    extern size_t dir_on[menudepth];
    
    typedef enum
    {
    	EXT_FOLDER = 0,
    	EXT_UP,
    	EXT_START,
    	EXT_TXT = EXT_START,
    	EXT_CFG,
    	EXT_WAD,
    	EXT_SOC,
    	EXT_LUA, // allowed even if not HAVE_BLUA so that we can yell on load attempt
    	NUM_EXT,
    	NUM_EXT_TABLE = NUM_EXT-EXT_START
    } ext_enum;
    
    boolean preparefilemenu(void);
    
    #endif // __FILESRCH_H__