mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
3deb8d1d99
The primary change is that things have been made memory-clean. Some of these pointers may point to wildly different places during the course of the program such as statically or dynamically allocated storage, the buffer returned by getenv() (which must not be modified according to the docs), or an element of argv[]. Consequently, we need to strdup, or better, dup_filename them if they are ever to be passed to a function that modifies their pointed-to data. Specifically: - added statics or consts according to usage - 3 new functions clear{Grp,Def,Script}NamePtr, only 'Def' one extern for now - in G_CheckCommandLine, don't strip 'const'; use Bstrncpyz where appropriate - remove multiple declarations Also, warn if an application parameter has been ignored (not matched). git-svn-id: https://svn.eduke32.com/eduke32@2561 1a8010ca-5511-0410-912e-c29ae57300e0
52 lines
1.9 KiB
C
52 lines
1.9 KiB
C
//-------------------------------------------------------------------------
|
|
/*
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
|
|
|
This file is part of EDuke32.
|
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 2
|
|
as published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
//-------------------------------------------------------------------------
|
|
|
|
#ifndef __premap_h__
|
|
#define __premap_h__
|
|
|
|
extern const char pow2char[];
|
|
|
|
extern int16_t SpriteCacheList[MAXTILES][3];
|
|
extern int32_t g_levelTextTime;
|
|
extern int32_t g_numRealPalettes;
|
|
extern int32_t voting,vote_map,vote_episode;
|
|
extern palette_t CrosshairColors;
|
|
void G_SetupFilenameBasedMusic(char *levnamebuf, const char *boardfilename, int32_t level_number);
|
|
int32_t G_EnterLevel(int32_t g);
|
|
int32_t G_FindLevelByFile(const char *fn);
|
|
void G_CacheMapData(void);
|
|
void G_FadeLoad(int32_t r,int32_t g,int32_t b,int32_t start,int32_t end,int32_t step,int32_t ticwait);
|
|
void G_FreeMapState(int32_t mapnum);
|
|
void G_NewGame(int32_t vn,int32_t ln,int32_t sk);
|
|
void G_ResetTimers(void);
|
|
void G_SetCrosshairColor(int32_t r,int32_t g,int32_t b);
|
|
void G_UpdateScreenArea(void);
|
|
void P_RandomSpawnPoint(int32_t snum);
|
|
void P_ResetInventory(int32_t snum);
|
|
void P_ResetPlayer(int32_t snum);
|
|
void P_ResetStatus(int32_t snum);
|
|
void P_ResetWeapons(int32_t snum);
|
|
void G_ClearFIFO(void);
|
|
void G_SetupCamTile(int32_t i,int32_t wn);
|
|
void G_ResetInterpolations(void);
|
|
|
|
#endif
|