| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program 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 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/main/init.h $ |
| 21 | * $Revision: 8 $ |
| 22 | * $Date: 5/12/99 1:57p $ |
| 23 | * $Author: Jason $ |
| 24 | * |
| 25 | * Initialization code |
| 26 | * |
| 27 | * $Log: /DescentIII/main/init.h $ |
| 28 | * |
| 29 | * 8 5/12/99 1:57p Jason |
| 30 | * fixed yet more buggy/ugly code |
| 31 | * |
| 32 | * 7 4/02/99 5:08p Matt |
| 33 | * Added intro movie. |
| 34 | * |
| 35 | * 6 10/14/98 4:37p Matt |
| 36 | * Made InitD3System() exit with error if there's a problem instead of |
| 37 | * returning a status value. Also moved some editor-specific code from |
| 38 | * init.cpp to mainfrm.cpp, and cleaned up some other initialization and |
| 39 | * error-handling code. |
| 40 | * |
| 41 | * 5 9/25/98 2:53p Jason |
| 42 | * added progress bar |
| 43 | * |
| 44 | * 4 7/01/98 4:56p Samir |
| 45 | * redid init code. |
| 46 | * |
| 47 | * 3 3/23/98 8:03p Samir |
| 48 | * A bunch of changes to allow for ALT-TAB to work. |
| 49 | * |
| 50 | * 2 7/24/97 3:04p Matt |
| 51 | * Added functions to load/save game variables from/to the registry |
| 52 | * |
| 53 | * 1 6/23/97 9:25p Samir |
| 54 | * added because source safe sucks |
| 55 | * |
| 56 | * 8 6/11/97 1:07p Samir |
| 57 | * The removal of gameos and replaced with oeApplication, oeDatabase |
| 58 | * |
| 59 | * 7 2/04/97 2:32p Samir |
| 60 | * Added separate editor initialization |
| 61 | * |
| 62 | * $NoKeywords: $ |
| 63 | */ |
| 64 | |
| 65 | #ifndef INIT_H |
| 66 | #define INIT_H |
| 67 | |
| 68 | // Universal globals for game |
| 69 | // --------------------------------------------------------------------------- |
| 70 | |
| 71 | // name of ddvideo subsystem to use for game. |
| 72 | extern char App_ddvid_subsystem[]; |
| 73 | |
| 74 | extern int ServerTimeout; |
| 75 | extern float LastPacketReceived; |
| 76 | |
| 77 | // --------------------------------------------------------------------------- |
| 78 | |
| 79 | // Initializes all the subsystems that need to be initialized BEFORE application creation. |
| 80 | void PreInitD3Systems(); |
| 81 | |
| 82 | // Initializes all the subsystems that D3/Editor needs to run. |
| 83 | // Returns 1 if all is good, 0 if something is wrong |
| 84 | void InitD3Systems1(bool editor = false); |
| 85 | void InitD3Systems2(bool editor = false); |
| 86 | |
| 87 | // Show the intro screen, or something |
| 88 | void IntroScreen(); |
| 89 | |
| 90 | // Save game variables to the registry |
| 91 | void SaveGameSettings(); |
| 92 | |
| 93 | // This function shutdowns all game systems |
| 94 | void ShutdownD3(); |
| 95 | |
| 96 | // This function restarts all game systems |
| 97 | void RestartD3(); |
| 98 | |
| 99 | void InitMessage(const char *c, float progress = -1); |
| 100 | |
| 101 | /** |
| 102 | * Save game variables to the registry |
| 103 | */ |
| 104 | void SaveGameSettings(); |
| 105 | |
| 106 | #endif |