mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-05 12:30:42 +00:00
bdedbc6f76
-Wwrite-strings is useful to detect code where string literals and e.g. alloc'd strings are used side-by-side, potentially creating dangerous situations, or to find uses of old, non-constified APIs. However, enabling it would still flood the log with too many warnings. Also, GCC wrongly warns for initializations of char arrays. git-svn-id: https://svn.eduke32.com/eduke32@2796 1a8010ca-5511-0410-912e-c29ae57300e0
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
//
|
|
// Definitions of common game-only data structures/functions
|
|
// (and declarations of data appearing in both)
|
|
// for EDuke32 and Mapster32
|
|
//
|
|
|
|
#ifndef EDUKE32_COMMON_GAME_H_
|
|
#define EDUKE32_COMMON_GAME_H_
|
|
|
|
#define GAMEFLAG_DUKE 0x00000001
|
|
#define GAMEFLAG_NAM 0x00000002
|
|
#define GAMEFLAG_NAPALM 0x00000004
|
|
#define GAMEFLAG_WW2GI 0x00000008
|
|
|
|
extern int32_t g_gameType;
|
|
|
|
#define DUKE (g_gameType & GAMEFLAG_DUKE)
|
|
#define NAM (g_gameType & GAMEFLAG_NAM)
|
|
#define NAPALM (g_gameType & GAMEFLAG_NAPALM)
|
|
#define WW2GI (g_gameType & GAMEFLAG_WW2GI)
|
|
|
|
enum Games_t {
|
|
GAME_DUKE = 0,
|
|
GAME_NAM,
|
|
GAME_NAPALM,
|
|
GAME_WW2GI,
|
|
GAMECOUNT
|
|
};
|
|
|
|
extern const char *defaultgamegrp[GAMECOUNT];
|
|
extern const char *defaultdeffilename[GAMECOUNT];
|
|
extern const char *defaultconfilename;
|
|
extern const char *defaultgameconfilename[GAMECOUNT];
|
|
|
|
extern char *g_grpNamePtr;
|
|
extern char *g_scriptNamePtr;
|
|
|
|
extern const char *G_DefaultGrpFile(void);
|
|
extern const char *G_GrpFile(void);
|
|
|
|
extern const char *G_DefaultConFile(void);
|
|
extern const char *G_ConFile(void);
|
|
|
|
extern void clearGrpNamePtr(void);
|
|
extern void clearDefNamePtr(void);
|
|
extern void clearScriptNamePtr(void);
|
|
|
|
#endif
|