home *** CD-ROM | disk | FTP | other *** search
- #ifndef __System_h__
- #define __System_h__
-
- #include "CCmd.h"
-
- class System{
- public:
-
- static bool init();
-
- //! quits the game fast
- static void errorQuit();
-
- //! quits the game in more humane way...
- static void normalQuit();
-
- //! creates and registers all game specific cvars and ccmds
- static bool registerCVarsAndCCmds();
-
- //! deletes and unregisters all game specific cvars and ccmds
- static bool unregisterCVarsAndCCmds();
-
- //! reads in the 'system.config' file (same as 'exec configs/sysinit.config' from console)
- static bool readSystemConfig();
-
- //! reads in the 'keybindings.config' file (same as 'exec configs/keybindings.config' from console)
- static bool readKeybindings();
-
- //! reads in the 'autoexec.config' file (if it exists - same as 'exec configs/autoexec.config' from console)
- static bool readAutoexec();
-
- //! writes the 'system.config' file (and thus saves the game settings)
- static bool writeSystemConfig();
-
- //! writes the 'keybindings.config' file (and saves the keybindigs)
- static bool writeKeybindings();
- };
-
- class CCmdSystemQuit:public CCmd{
- public:
- CCmdSystemQuit();
- ~CCmdSystemQuit();
-
- bool exec(int argc, char* argv[]); /* exec ccmd with arguments */
- };
-
-
-
- #endif /* __System_h__ */
-