Skip to content
Snippets Groups Projects
Select Git revision
  • fe7d19cc57ab40ad130f9941efcfef72c3e82daa
  • next default protected
  • 2214-pre3
  • just-in-case
  • fix-opengl-parameter-crash
  • 2214-pre2
  • 2214-pre1
  • delfile2
  • cleanupmusic
  • gametype-refactor-1
  • custom-map-names
  • extra-textures
  • clipmidtex
  • optimize-storewallrange
  • increase-maxconditionsets
  • acs
  • softcode-info
  • lua-gfx-2
  • better-player-states
  • lua-debug-library
  • any-resolution
  • SRB2_release_2.2.13
  • SRB2_release_2.2.12
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
41 results

d_main.h

Blame
  • Forked from STJr / SRB2
    16523 commits behind, 5 commits ahead of the upstream repository.
    Alam Ed Arias's avatar
    Alam Ed Arias authored and Alam Arias committed
    b93cb1b6
    History
    d_main.h 1.78 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2014 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  d_main.h
    /// \brief game startup, and main loop code, system specific interface stuff.
    
    #ifndef __D_MAIN__
    #define __D_MAIN__
    
    #include "d_event.h"
    #include "w_wad.h"   // for MAX_WADFILES
    
    extern boolean supdate;
    extern boolean advancedemo;
    
    // make sure not to write back the config until it's been correctly loaded
    extern tic_t rendergametic;
    
    extern char srb2home[256]; //Alam: My Home
    extern boolean usehome; //Alam: which path?
    extern const char *pandf; //Alam: how to path?
    extern char srb2path[256]; //Alam: SRB2's Home
    
    // the infinite loop of D_SRB2Loop() called from win_main for windows version
    void D_SRB2Loop(void) FUNCNORETURN;
    
    //
    // D_SRB2Main()
    // Not a globally visible function, just included for source reference,
    // calls all startup code, parses command line options.
    // If not overrided by user input, calls N_AdvanceDemo.
    //
    void D_SRB2Main(void);
    
    // Called by IO functions when input is detected.
    void D_PostEvent(const event_t *ev);
    #ifndef DOXYGEN
    void D_PostEvent_end(void);    // delimiter for locking memory
    #endif
    
    void D_ProcessEvents(void);
    
    const char *D_Home(void);
    
    //
    // BASE LEVEL
    //
    void D_PageTicker(void);
    // pagename is lumpname of a 320x200 patch to fill the screen
    void D_PageDrawer(const char *pagename);
    void D_AdvanceDemo(void);
    void D_StartTitle(void);
    
    #endif //__D_MAIN__