d_main.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. ===========================================================================
  3. Doom 3 BFG Edition GPL Source Code
  4. Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
  5. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
  6. Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
  16. In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
  17. If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
  18. ===========================================================================
  19. */
  20. #ifndef __D_MAIN__
  21. #define __D_MAIN__
  22. #include "d_event.h"
  23. #ifdef __GNUG__
  24. #pragma interface
  25. #endif
  26. extern const char* extraWad;
  27. #define MAXWADFILES 20
  28. extern const char* wadfiles[MAXWADFILES];
  29. void D_AddExtraWadFile( const char *file );
  30. void D_AddFile ( const char *file);
  31. //
  32. // D_DoomMain()
  33. // Not a globally visible function, just included for source reference,
  34. // calls all startup code, parses command line options.
  35. // If not overrided by user input, calls N_AdvanceDemo.
  36. //
  37. void D_DoomMain (void);
  38. // Called by IO functions when input is detected.
  39. void D_PostEvent (event_t* ev);
  40. //
  41. // BASE LEVEL
  42. //
  43. void D_PageTicker (void);
  44. void D_PageDrawer (void);
  45. void D_AdvanceDemo (void);
  46. void D_StartTitle (void);
  47. #define R_OK 0x01
  48. #define X_OK 0x02
  49. #define W_OK 0x04
  50. int access(char* name, int val);
  51. #endif