mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-19 10:51:26 +00:00
abed04ab23
- The CRT no longer detects any memory leaks when I run to the IWAD picker and quit. - Fixed: The memory used to hold the path to zdoom.wad/.pk3 was not freed if the IWAD picker was cancelled. - Fixed: Some implementations of cvar->GetGenericRep (CVAR_String) returned a statically allocated string and others returned a dynamically allocated string. To be consistant, they should all be static. - Fixed: DObject also has three static TArrays that should not be explicitly initialized: Objects, FreeIndices, and ToDestroy. - Added a new do-nothing constructor for TArray that can be used for BSS objects that are manipulated before startup. Specifically, this was added because C_AddTabCommand() is called before main, but the TabCommands constructor is called after the array already has over 100 entries in it, orphaning everything that was already inserted. And since the code is much nicer-looking now, I didn't want to revert to the old non-TArray version. This could also have been used to fix FName, but I consider the current implementation to be better than the old one, so I'm leaving it as-is. - Fixed: Scanned IWAD paths were not freed if you exited without selecting one. - Fixed: Dynamically allocated cvars were not freed on exit. - Fixed: FConfigFile's destructor did not free space used for Values. SVN r82 (trunk)
86 lines
1.9 KiB
C++
86 lines
1.9 KiB
C++
// Emacs style mode select -*- C++ -*-
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Id:$
|
|
//
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
//
|
|
// This source is available for distribution and/or modification
|
|
// only under the terms of the DOOM Source Code License as
|
|
// published by id Software. All rights reserved.
|
|
//
|
|
// The source is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
// for more details.
|
|
//
|
|
// $Log:$
|
|
//
|
|
// DESCRIPTION:
|
|
// System specific interface stuff.
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __D_MAIN__
|
|
#define __D_MAIN__
|
|
|
|
#include "d_event.h"
|
|
|
|
//
|
|
// D_DoomMain()
|
|
// 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_DoomMain (void);
|
|
|
|
// Called by IO functions when input is detected.
|
|
void D_PostEvent (const event_t* ev);
|
|
|
|
// [RH] Passed true if just drawing for a screenshot
|
|
void D_Display (bool screenshot);
|
|
|
|
|
|
//
|
|
// BASE LEVEL
|
|
//
|
|
void D_PageTicker (void);
|
|
void D_PageDrawer (void);
|
|
void D_AdvanceDemo (void);
|
|
void D_StartTitle (void);
|
|
|
|
|
|
// [RH] Set this to something to draw an icon during the next screen refresh.
|
|
extern char *D_DrawIcon;
|
|
|
|
|
|
enum EIWADType
|
|
{
|
|
IWAD_Doom2TNT,
|
|
IWAD_Doom2Plutonia,
|
|
IWAD_Hexen,
|
|
IWAD_HexenDK,
|
|
IWAD_Doom2,
|
|
IWAD_HereticShareware,
|
|
IWAD_HereticExtended,
|
|
IWAD_Heretic,
|
|
IWAD_DoomShareware,
|
|
IWAD_UltimateDoom,
|
|
IWAD_DoomRegistered,
|
|
IWAD_Strife,
|
|
IWAD_StrifeTeaser,
|
|
IWAD_StrifeTeaser2,
|
|
|
|
NUM_IWAD_TYPES
|
|
};
|
|
|
|
struct WadStuff
|
|
{
|
|
FString Path;
|
|
EIWADType Type;
|
|
};
|
|
|
|
extern const char *IWADTypeNames[NUM_IWAD_TYPES];
|
|
|
|
#endif
|