engine: common: remove unused D_ enum used for MsgDev in old engine. Make sure all enums and structs here are not anonymous

This commit is contained in:
Alibek Omarov 2025-02-02 20:25:42 +03:00
parent f460aa63b0
commit 185bce0489

View file

@ -76,23 +76,14 @@ XASH SPECIFIC - sort of hack that works only in Xash3D not in GoldSrc
#define HACKS_RELATED_HLMODS // some HL-mods works differently under Xash and can't be fixed without some hacks at least at current time #define HACKS_RELATED_HLMODS // some HL-mods works differently under Xash and can't be fixed without some hacks at least at current time
enum enum dev_level_e
{ {
DEV_NONE = 0, DEV_NONE = 0,
DEV_NORMAL, DEV_NORMAL,
DEV_EXTENDED DEV_EXTENDED
}; };
enum typedef enum instance_e
{
D_INFO = 1, // "-dev 1", shows various system messages
D_WARN, // "-dev 2", shows not critical system warnings
D_ERROR, // "-dev 3", shows critical warnings
D_REPORT, // "-dev 4", special case for game reports
D_NOTE // "-dev 5", show system notifications for engine developers
};
typedef enum
{ {
HOST_NORMAL, // listen server, singleplayer HOST_NORMAL, // listen server, singleplayer
HOST_DEDICATED, HOST_DEDICATED,
@ -194,7 +185,7 @@ GAMEINFO stuff
internal shared gameinfo structure (readonly for engine parts) internal shared gameinfo structure (readonly for engine parts)
======================================================================== ========================================================================
*/ */
typedef enum typedef enum host_status_e
{ {
HOST_INIT = 0, // initalize operations HOST_INIT = 0, // initalize operations
HOST_FRAME, // host running HOST_FRAME, // host running
@ -205,7 +196,7 @@ typedef enum
HOST_CRASHED // an exception handler called HOST_CRASHED // an exception handler called
} host_status_t; } host_status_t;
typedef enum typedef enum host_state_e
{ {
STATE_RUNFRAME = 0, STATE_RUNFRAME = 0,
STATE_LOAD_LEVEL, STATE_LOAD_LEVEL,
@ -214,7 +205,7 @@ typedef enum
STATE_GAME_SHUTDOWN, STATE_GAME_SHUTDOWN,
} host_state_t; } host_state_t;
typedef struct typedef struct game_status_e
{ {
host_state_t curstate; host_state_t curstate;
host_state_t nextstate; host_state_t nextstate;
@ -225,7 +216,7 @@ typedef struct
qboolean newGame; // unload the server.dll before start a new map qboolean newGame; // unload the server.dll before start a new map
} game_status_t; } game_status_t;
typedef enum typedef enum keydest_e
{ {
key_console = 0, key_console = 0,
key_game, key_game,
@ -233,7 +224,7 @@ typedef enum
key_message key_message
} keydest_t; } keydest_t;
typedef enum typedef enum rdtype_e
{ {
RD_NONE = 0, RD_NONE = 0,
RD_CLIENT, RD_CLIENT,
@ -243,7 +234,7 @@ typedef enum
#include "net_ws.h" #include "net_ws.h"
// console field // console field
typedef struct typedef struct field_e
{ {
string buffer; string buffer;
int cursor; int cursor;
@ -261,7 +252,7 @@ typedef struct host_redirect_s
int lines; int lines;
} host_redirect_t; } host_redirect_t;
typedef struct typedef struct soundlist_e
{ {
char name[MAX_QPATH]; char name[MAX_QPATH];
short entnum; short entnum;
@ -302,7 +293,7 @@ typedef struct host_parm_s
host_status_t status; // global host state host_status_t status; // global host state
game_status_t game; // game manager game_status_t game; // game manager
uint type; // running at instance_t type; // running at
poolhandle_t mempool; // static mempool for misc allocations poolhandle_t mempool; // static mempool for misc allocations
poolhandle_t imagepool; // imagelib mempool poolhandle_t imagepool; // imagelib mempool
poolhandle_t soundpool; // soundlib mempool poolhandle_t soundpool; // soundlib mempool
@ -496,7 +487,7 @@ internal sound format
typically expanded to wav buffer typically expanded to wav buffer
======================================================================== ========================================================================
*/ */
typedef enum typedef enum sndformat_e
{ {
WF_UNKNOWN = 0, WF_UNKNOWN = 0,
WF_PCMDATA, WF_PCMDATA,
@ -507,7 +498,7 @@ typedef enum
} sndformat_t; } sndformat_t;
// wavdata output flags // wavdata output flags
typedef enum typedef enum sndFlags_e
{ {
// wavdata->flags // wavdata->flags
SOUND_LOOPED = BIT( 0 ), // this is looped sound (contain cue markers) SOUND_LOOPED = BIT( 0 ), // this is looped sound (contain cue markers)
@ -517,7 +508,7 @@ typedef enum
SOUND_RESAMPLE = BIT( 12 ), // resample sound to specified rate SOUND_RESAMPLE = BIT( 12 ), // resample sound to specified rate
} sndFlags_t; } sndFlags_t;
typedef struct typedef struct wavdata_s
{ {
size_t size; // for bounds checking size_t size; // for bounds checking
uint loopStart; // offset at this point sound will be looping while playing more than only once uint loopStart; // offset at this point sound will be looping while playing more than only once