Xonotic
file.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ERASEABLE bool fexists (string f)
 

Function Documentation

◆ fexists()

ERASEABLE bool fexists ( string  f)

Definition at line 4 of file file.qh.

References fclose(), FILE_READ, and fopen().

Referenced by bd_save_level(), CheckPlayerModel(), CSQCPlayer_LOD_Apply(), CSQCPlayer_ModelAppearance_Apply(), CSQCPlayer_ModelAppearance_PostUpdate(), GenericCommand_maplist(), GenericCommand_rpn(), InstantAction_LoadMap(), MapHasRightSize(), Model::Model ::model_precache(), MUTATOR_HOOKFUNCTION(), precache_playermodel(), PreviewExists(), spawnfunc(), updateCheck(), and updateCompression().

5 {
6  int fh = fopen(f, FILE_READ);
7  if (fh < 0) return false;
8  fclose(fh);
9  return true;
10 }
const float FILE_READ
Definition: csprogsdefs.qc:231
+ Here is the call graph for this function:
+ Here is the caller graph for this function: