mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-19 10:51:26 +00:00
8fcf93d65a
functions added to the exit chain with atterm so that they can be called in a deterministic order and not whatever order the linker decides to put them in. - Fixed: DCajunMaster did not free its getspawned. - Fixed: P_FreeLevelData() did not free ACS scripts. - Fixed: Level snapshots were not freed at exit. - Fixed: The save/load menu list was not freed at exit. - Fixed: FCompressedMemFile needs a destructor to free the m_ImplodedBuffer. - Fixed: G_DoLoadGame() did not free the engine string. - Fixed: M_ReadSaveStrings() did not free the engine string. - Fixed: Processing DEM_SAVEGAME did not free the pathname string. - Added a check for truncated flats to FFlatTexture::MakeTexture() because Heretic's F_SKY1 is only four bytes long. - Added a dump of the offending state to the "Cannot find state..." diagnostic. - Fixed: FCompressedFile did not initialize m_Mode in its default constructor. - Fixed: Heretic and Hexen status bars did not initialize ArtiRefresh. - Fixed: PNGHandle destructor should use delete[] to free TextChunks. SVN r111 (trunk)
48 lines
1.3 KiB
C++
48 lines
1.3 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.
|
|
//
|
|
// DESCRIPTION:
|
|
//
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __M_MISC__
|
|
#define __M_MISC__
|
|
|
|
#include "doomtype.h"
|
|
|
|
class FConfigFile;
|
|
class FGameConfigFile;
|
|
|
|
extern FGameConfigFile *GameConfig;
|
|
|
|
BOOL M_WriteFile (char const *name, void *source, int length);
|
|
int M_ReadFile (char const *name, byte **buffer);
|
|
void M_FindResponseFile (void);
|
|
|
|
// [RH] M_ScreenShot now accepts a filename parameter.
|
|
// Pass a NULL to get the original behavior.
|
|
void M_ScreenShot (char *filename);
|
|
|
|
void M_LoadDefaults ();
|
|
|
|
void M_SaveDefaults ();
|
|
void M_SaveCustomKeys (FConfigFile *config, char *section, char *subsection);
|
|
|
|
FString GetUserFile (const char *path, bool nodir=false);
|
|
|
|
#endif
|