mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Cleanup includes
git-svn-id: https://svn.eduke32.com/eduke32@7186 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6a97d4ea46
commit
e513e1ceae
33 changed files with 154 additions and 155 deletions
|
@ -31,9 +31,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef FX_MAN_H_
|
#ifndef FX_MAN_H_
|
||||||
#define FX_MAN_H_
|
#define FX_MAN_H_
|
||||||
|
|
||||||
|
#include "drivers.h"
|
||||||
#include "inttypes.h"
|
#include "inttypes.h"
|
||||||
#include "limits.h"
|
#include "limits.h"
|
||||||
#include "drivers.h"
|
|
||||||
#include "multivoc.h"
|
#include "multivoc.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
# error Visual Studio 2013 is the minimum supported version.
|
# error Visual Studio 2013 is the minimum supported version.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "collections.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "pragmas.h"
|
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include "glbuild.h"
|
#include "glbuild.h"
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
#include "collections.h"
|
#include "pragmas.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -255,7 +255,7 @@ enum {
|
||||||
|
|
||||||
//Make all variables in BUILD.H defined in the ENGINE,
|
//Make all variables in BUILD.H defined in the ENGINE,
|
||||||
//and externed in GAME
|
//and externed in GAME
|
||||||
#ifdef ENGINE
|
#ifdef engine_c_
|
||||||
# define EXTERN
|
# define EXTERN
|
||||||
#else
|
#else
|
||||||
# define EXTERN extern
|
# define EXTERN extern
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#ifndef collections_h_
|
#ifndef collections_h_
|
||||||
#define collections_h_
|
#define collections_h_
|
||||||
|
|
||||||
|
#include "compat.h"
|
||||||
|
|
||||||
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
||||||
|
|
||||||
// GrowArray - heap-allocated storage that can expand at runtime
|
// GrowArray - heap-allocated storage that can expand at runtime
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
#ifndef EDUKE32_COMMON_H_
|
#ifndef EDUKE32_COMMON_H_
|
||||||
#define EDUKE32_COMMON_H_
|
#define EDUKE32_COMMON_H_
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include "scriptfile.h"
|
|
||||||
#include "cache1d.h"
|
#include "cache1d.h"
|
||||||
|
#include "compat.h"
|
||||||
#include "pragmas.h" // klabs
|
#include "pragmas.h" // klabs
|
||||||
|
#include "scriptfile.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -388,25 +388,25 @@ defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 ||
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined _MSC_VER || defined __cplusplus
|
#if !defined _MSC_VER || defined __cplusplus
|
||||||
# include <stdint.h>
|
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
|
# include <stdint.h>
|
||||||
#else
|
#else
|
||||||
# include "msvc/inttypes.h" // from http://code.google.com/p/msinttypes/
|
# include "msvc/inttypes.h" // from http://code.google.com/p/msinttypes/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -425,12 +425,12 @@ defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 ||
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
# include <io.h>
|
|
||||||
# include <direct.h>
|
# include <direct.h>
|
||||||
|
# include <io.h>
|
||||||
#else
|
#else
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1260,8 +1260,8 @@ static inline void maybe_grow_buffer(char ** const buffer, int32_t * const buffe
|
||||||
#define LIBDIVIDE_C_HEADERS
|
#define LIBDIVIDE_C_HEADERS
|
||||||
#define LIBDIVIDE_NONAMESPACE
|
#define LIBDIVIDE_NONAMESPACE
|
||||||
#define LIBDIVIDE_NOINLINE
|
#define LIBDIVIDE_NOINLINE
|
||||||
#include "libdivide.h"
|
|
||||||
#include "fix16.h"
|
#include "fix16.h"
|
||||||
|
#include "libdivide.h"
|
||||||
|
|
||||||
/* End dependence on compat.o object. */
|
/* End dependence on compat.o object. */
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#else
|
#else
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64__) || defined(_WIN64) || defined(_M_X64)
|
#if defined(__x86_64__) || defined(_WIN64) || defined(_M_X64)
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
#ifndef polymer_h_
|
#ifndef polymer_h_
|
||||||
# define polymer_h_
|
# define polymer_h_
|
||||||
|
|
||||||
# include "compat.h"
|
|
||||||
# include "baselayer.h"
|
# include "baselayer.h"
|
||||||
# include "glad/glad.h"
|
|
||||||
# include "build.h"
|
# include "build.h"
|
||||||
|
# include "compat.h"
|
||||||
|
# include "glad/glad.h"
|
||||||
# include "glbuild.h"
|
# include "glbuild.h"
|
||||||
# include "osd.h"
|
|
||||||
# include "hightile.h"
|
# include "hightile.h"
|
||||||
# include "mdsprite.h"
|
# include "mdsprite.h"
|
||||||
|
# include "osd.h"
|
||||||
# include "polymost.h"
|
# include "polymost.h"
|
||||||
# include "pragmas.h"
|
# include "pragmas.h"
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
|
|
||||||
|
#include "baselayer.h" // glinfo
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include "hightile.h"
|
#include "hightile.h"
|
||||||
#include "baselayer.h" // glinfo
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -6,37 +6,35 @@
|
||||||
// by Jonathon Fowler (jf@jonof.id.au)
|
// by Jonathon Fowler (jf@jonof.id.au)
|
||||||
// by the EDuke32 team (development@voidpoint.com)
|
// by the EDuke32 team (development@voidpoint.com)
|
||||||
|
|
||||||
#define ENGINE
|
#define engine_c_
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include "build.h"
|
|
||||||
#include "editor.h"
|
|
||||||
#include "pragmas.h"
|
|
||||||
#include "cache1d.h"
|
|
||||||
#include "a.h"
|
#include "a.h"
|
||||||
#include "osd.h"
|
|
||||||
#include "crc32.h"
|
|
||||||
#include "lz4.h"
|
|
||||||
#include "colmatch.h"
|
|
||||||
|
|
||||||
#include "baselayer.h"
|
#include "baselayer.h"
|
||||||
|
#include "build.h"
|
||||||
|
#include "cache1d.h"
|
||||||
|
#include "colmatch.h"
|
||||||
|
#include "compat.h"
|
||||||
|
#include "crc32.h"
|
||||||
|
#include "editor.h"
|
||||||
|
#include "engine_priv.h"
|
||||||
|
#include "lz4.h"
|
||||||
|
#include "osd.h"
|
||||||
|
#include "palette.h"
|
||||||
|
#include "pragmas.h"
|
||||||
#include "scriptfile.h"
|
#include "scriptfile.h"
|
||||||
|
|
||||||
#include "softsurface.h"
|
#include "softsurface.h"
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
# include "glad/glad.h"
|
# include "glad/glad.h"
|
||||||
# include "glsurface.h"
|
# include "glsurface.h"
|
||||||
|
# include "hightile.h"
|
||||||
# include "mdsprite.h"
|
# include "mdsprite.h"
|
||||||
# ifdef POLYMER
|
# ifdef POLYMER
|
||||||
# include "polymer.h"
|
# include "polymer.h"
|
||||||
# endif
|
# endif
|
||||||
# include "hightile.h"
|
|
||||||
# include "polymost.h"
|
# include "polymost.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "engine_priv.h"
|
|
||||||
#include "palette.h"
|
|
||||||
|
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
# include "lunatic.h"
|
# include "lunatic.h"
|
||||||
L_State g_engState;
|
L_State g_engState;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
#include "baselayer.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include "glbuild.h"
|
#include "glbuild.h"
|
||||||
#include "baselayer.h"
|
|
||||||
|
|
||||||
#if defined USE_OPENGL
|
#if defined USE_OPENGL
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ void hash_loop(hashtable_t *t, void(*func)(const char *, intptr_t))
|
||||||
|
|
||||||
void hash_free(hashtable_t *t)
|
void hash_free(hashtable_t *t)
|
||||||
{
|
{
|
||||||
if (t->items == NULL)
|
if (t == NULL || t->items == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int remaining = t->size - 1;
|
int remaining = t->size - 1;
|
||||||
|
|
|
@ -3,17 +3,14 @@
|
||||||
// by Jonathon Fowler (jf@jonof.id.au)
|
// by Jonathon Fowler (jf@jonof.id.au)
|
||||||
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "osd.h"
|
|
||||||
#include "compat.h"
|
|
||||||
#include "baselayer.h"
|
|
||||||
#include "cache1d.h"
|
#include "cache1d.h"
|
||||||
#include "pragmas.h"
|
|
||||||
#include "scancodes.h"
|
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
|
#include "editor.h"
|
||||||
|
#include "osd.h"
|
||||||
|
#include "scancodes.h"
|
||||||
|
|
||||||
#define XXH_STATIC_LINKING_ONLY
|
#define XXH_STATIC_LINKING_ONLY
|
||||||
#include "xxhash.h"
|
#include "xxhash.h"
|
||||||
#include "common.h"
|
|
||||||
#include "editor.h"
|
|
||||||
|
|
||||||
static osdsymbol_t *osd_addsymbol(const char *name);
|
static osdsymbol_t *osd_addsymbol(const char *name);
|
||||||
static osdsymbol_t *osd_findsymbol(const char *pszName, osdsymbol_t *pSymbol);
|
static osdsymbol_t *osd_findsymbol(const char *pszName, osdsymbol_t *pSymbol);
|
||||||
|
|
|
@ -1,43 +1,41 @@
|
||||||
// SDL interface layer for the Build Engine
|
// SDL interface layer for the Build Engine
|
||||||
// Use SDL 1.2 or 2.0 from http://www.libsdl.org
|
// Use SDL 1.2 or 2.0 from http://www.libsdl.org
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "sdl_inc.h"
|
|
||||||
#include "renderlayer.h"
|
|
||||||
#include "cache1d.h"
|
|
||||||
//#include "pragmas.h"
|
|
||||||
#include "a.h"
|
#include "a.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "osd.h"
|
#include "cache1d.h"
|
||||||
|
#include "compat.h"
|
||||||
#include "engine_priv.h"
|
#include "engine_priv.h"
|
||||||
|
#include "osd.h"
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
|
#include "renderlayer.h"
|
||||||
|
#include "sdl_inc.h"
|
||||||
#include "softsurface.h"
|
#include "softsurface.h"
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
# include "glad/glad.h"
|
# include "glad/glad.h"
|
||||||
# include "glbuild.h"
|
# include "glbuild.h"
|
||||||
# include "glsurface.h"
|
# include "glsurface.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined _WIN32
|
|
||||||
# include "winbits.h"
|
|
||||||
#endif
|
|
||||||
#if defined __APPLE__
|
|
||||||
# include "osxbits.h"
|
|
||||||
# include <mach/mach.h>
|
|
||||||
# include <mach/mach_time.h>
|
|
||||||
#endif
|
|
||||||
#if defined HAVE_GTK2
|
#if defined HAVE_GTK2
|
||||||
# include "gtkbits.h"
|
# include "gtkbits.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
# include <android/log.h>
|
# include <android/log.h>
|
||||||
#endif
|
#elif defined __APPLE__
|
||||||
#if defined GEKKO
|
# include "osxbits.h"
|
||||||
|
# include <mach/mach.h>
|
||||||
|
# include <mach/mach_time.h>
|
||||||
|
#elif defined GEKKO
|
||||||
# include "wiibits.h"
|
# include "wiibits.h"
|
||||||
# include <ogc/lwp.h>
|
# include <ogc/lwp.h>
|
||||||
# include <ogc/lwp_watchdog.h>
|
# include <ogc/lwp_watchdog.h>
|
||||||
|
#elif defined _WIN32
|
||||||
|
# include "winbits.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SDL_MAJOR_VERSION != 1
|
#if SDL_MAJOR_VERSION != 1
|
||||||
|
|
|
@ -23,6 +23,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef anim_h_
|
#ifndef anim_h_
|
||||||
#define anim_h_
|
#define anim_h_
|
||||||
|
|
||||||
|
#include "compat.h"
|
||||||
|
#include "hash.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint16_t frame;
|
uint16_t frame;
|
||||||
int16_t sound;
|
int16_t sound;
|
||||||
|
|
|
@ -22,6 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define MAXCHEATLEN 20
|
||||||
|
#define NUMCHEATCODES (int32_t) ARRAY_SIZE(CheatStrings)
|
||||||
|
|
||||||
extern void G_DoCheats(void);
|
extern void G_DoCheats(void);
|
||||||
extern void G_SetupCheats(void);
|
extern void G_SetupCheats(void);
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#ifndef EDUKE32_COMMON_GAME_H_
|
#ifndef EDUKE32_COMMON_GAME_H_
|
||||||
#define EDUKE32_COMMON_GAME_H_
|
#define EDUKE32_COMMON_GAME_H_
|
||||||
|
|
||||||
|
#include "collections.h"
|
||||||
#include "grpscan.h"
|
#include "grpscan.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -23,24 +23,24 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef config_public_h_
|
#ifndef config_public_h_
|
||||||
#define config_public_h_
|
#define config_public_h_
|
||||||
|
|
||||||
#define SETUPNAMEPARM "SETUPFILE"
|
#include "function.h"
|
||||||
|
|
||||||
int CONFIG_ReadSetup(void);
|
int CONFIG_ReadSetup(void);
|
||||||
void CONFIG_GetSetupFilename( void );
|
|
||||||
void CONFIG_WriteSetup(uint32_t flags);
|
void CONFIG_WriteSetup(uint32_t flags);
|
||||||
void CONFIG_SetupMouse( void );
|
void CONFIG_SetDefaults(void);
|
||||||
void CONFIG_SetupJoystick( void );
|
void CONFIG_SetupMouse(void);
|
||||||
|
void CONFIG_SetupJoystick(void);
|
||||||
void CONFIG_SetDefaultKeys(const char (*keyptr)[MAXGAMEFUNCLEN]);
|
void CONFIG_SetDefaultKeys(const char (*keyptr)[MAXGAMEFUNCLEN]);
|
||||||
|
|
||||||
int32_t CONFIG_GetMapBestTime(char const * mapname, uint8_t const * mapmd4);
|
int32_t CONFIG_GetMapBestTime(char const *mapname, uint8_t const *mapmd4);
|
||||||
int CONFIG_SetMapBestTime(uint8_t const * mapmd4, int32_t tm);
|
int CONFIG_SetMapBestTime(uint8_t const *mapmd4, int32_t tm);
|
||||||
|
|
||||||
|
int32_t CONFIG_FunctionNameToNum(const char *func);
|
||||||
|
char * CONFIG_FunctionNumToName(int32_t func);
|
||||||
|
|
||||||
|
int32_t CONFIG_AnalogNameToNum(const char *func);
|
||||||
|
const char *CONFIG_AnalogNumToName(int32_t func);
|
||||||
|
|
||||||
void CONFIG_MapKey(int which, kb_scancode key1, kb_scancode oldkey1, kb_scancode key2, kb_scancode oldkey2);
|
void CONFIG_MapKey(int which, kb_scancode key1, kb_scancode oldkey1, kb_scancode key2, kb_scancode oldkey2);
|
||||||
|
|
||||||
int32_t CONFIG_FunctionNameToNum(const char *func);
|
|
||||||
char *CONFIG_FunctionNumToName(int32_t func);
|
|
||||||
int32_t CONFIG_AnalogNameToNum(const char *func);
|
|
||||||
const char *CONFIG_AnalogNumToName(int32_t func);
|
|
||||||
void CONFIG_SetDefaults(void);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,12 +20,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "duke3d.h"
|
|
||||||
#include "demo.h"
|
#include "demo.h"
|
||||||
//#include "premap.h" // G_UpdateScreenArea()
|
#include "duke3d.h"
|
||||||
|
#include "input.h"
|
||||||
#include "menus.h"
|
#include "menus.h"
|
||||||
#include "savegame.h"
|
#include "savegame.h"
|
||||||
#include "input.h"
|
|
||||||
#include "screens.h"
|
#include "screens.h"
|
||||||
|
|
||||||
char g_firstDemoFile[BMAX_PATH];
|
char g_firstDemoFile[BMAX_PATH];
|
||||||
|
|
|
@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef demo_h_
|
#ifndef demo_h_
|
||||||
#define demo_h_
|
#define demo_h_
|
||||||
|
|
||||||
|
#include "compat.h"
|
||||||
|
|
||||||
#define DEMOFN_FMT "edemo%03d.edm"
|
#define DEMOFN_FMT "edemo%03d.edm"
|
||||||
#define MAXDEMOS 1000
|
#define MAXDEMOS 1000
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#define duke3d_h_
|
#define duke3d_h_
|
||||||
|
|
||||||
// JBF
|
// JBF
|
||||||
#include "compat.h"
|
|
||||||
#include "a.h"
|
#include "a.h"
|
||||||
|
#include "baselayer.h"
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
|
#include "cache1d.h"
|
||||||
|
#include "compat.h"
|
||||||
|
#include "file_lib.h"
|
||||||
|
#include "fx_man.h"
|
||||||
|
#include "keyboard.h"
|
||||||
|
#include "pragmas.h"
|
||||||
|
|
||||||
#ifdef POLYMER
|
#ifdef POLYMER
|
||||||
#include "polymer.h"
|
#include "polymer.h"
|
||||||
|
@ -36,12 +42,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "cache1d.h"
|
|
||||||
#include "pragmas.h"
|
|
||||||
#include "baselayer.h"
|
|
||||||
#include "file_lib.h"
|
|
||||||
#include "keyboard.h"
|
|
||||||
#include "fx_man.h"
|
|
||||||
|
|
||||||
#define HEAD2 APPNAME
|
#define HEAD2 APPNAME
|
||||||
|
|
||||||
|
@ -125,30 +125,30 @@ EDUKE32_STATIC_ASSERT(7 <= MAXTILES-MAXUSERTILES);
|
||||||
// so that debugging with valgrind --smc-check=none is possible:
|
// so that debugging with valgrind --smc-check=none is possible:
|
||||||
//#define DEBUG_VALGRIND_NO_SMC
|
//#define DEBUG_VALGRIND_NO_SMC
|
||||||
|
|
||||||
#include "common_game.h"
|
|
||||||
#include "namesdyn.h"
|
|
||||||
#include "function.h"
|
|
||||||
#include "macros.h"
|
|
||||||
#include "gamedefs.h"
|
|
||||||
#include "config.h"
|
|
||||||
#include "sounds.h"
|
|
||||||
#include "control.h"
|
|
||||||
#include "_rts.h"
|
#include "_rts.h"
|
||||||
#include "rts.h"
|
|
||||||
#include "soundsdyn.h"
|
|
||||||
#include "music.h"
|
|
||||||
#include "inv.h"
|
|
||||||
#include "player.h"
|
|
||||||
#include "actors.h"
|
#include "actors.h"
|
||||||
#include "quotes.h"
|
#include "common_game.h"
|
||||||
#include "global.h"
|
#include "config.h"
|
||||||
#include "sector.h"
|
#include "control.h"
|
||||||
#include "net.h"
|
#include "function.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
#include "gamedef.h"
|
#include "gamedef.h"
|
||||||
|
#include "gamedefs.h"
|
||||||
#include "gameexec.h"
|
#include "gameexec.h"
|
||||||
#include "gamevars.h"
|
#include "gamevars.h"
|
||||||
|
#include "global.h"
|
||||||
|
#include "inv.h"
|
||||||
|
#include "macros.h"
|
||||||
|
#include "music.h"
|
||||||
|
#include "namesdyn.h"
|
||||||
|
#include "net.h"
|
||||||
|
#include "player.h"
|
||||||
|
#include "quotes.h"
|
||||||
|
#include "rts.h"
|
||||||
#include "screentext.h"
|
#include "screentext.h"
|
||||||
|
#include "sector.h"
|
||||||
|
#include "sounds.h"
|
||||||
|
#include "soundsdyn.h"
|
||||||
|
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
# include "lunatic_game.h"
|
# include "lunatic_game.h"
|
||||||
|
|
|
@ -30,6 +30,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fix16.h"
|
#include "fix16.h"
|
||||||
|
#include "gamedefs.h"
|
||||||
|
#include "gamevars.h"
|
||||||
|
#include "net.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,17 +20,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "duke3d.h"
|
#include "cheats.h"
|
||||||
#include "namesdyn.h"
|
|
||||||
#include "gamedef.h"
|
|
||||||
#include "gameexec.h"
|
|
||||||
#include "savegame.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "common_game.h"
|
#include "common_game.h"
|
||||||
#include "cheats.h"
|
|
||||||
|
|
||||||
#include "osd.h"
|
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
|
#include "duke3d.h"
|
||||||
|
#include "gamedef.h"
|
||||||
|
#include "gameexec.h"
|
||||||
|
#include "namesdyn.h"
|
||||||
|
#include "osd.h"
|
||||||
|
#include "savegame.h"
|
||||||
|
|
||||||
int32_t g_scriptVersion = 13; // 13 = 1.3D-style CON files, 14 = 1.4/1.5 style CON files
|
int32_t g_scriptVersion = 13; // 13 = 1.3D-style CON files, 14 = 1.4/1.5 style CON files
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef gamedef_h_
|
#ifndef gamedef_h_
|
||||||
#define gamedef_h_
|
#define gamedef_h_
|
||||||
|
|
||||||
|
#include "actors.h"
|
||||||
#include "build.h" // hashtable_t
|
#include "build.h" // hashtable_t
|
||||||
|
#include "cheats.h"
|
||||||
#include "common.h" // tokenlist
|
#include "common.h" // tokenlist
|
||||||
#include "player.h" // projectile_t
|
#include "player.h" // projectile_t
|
||||||
|
|
||||||
|
@ -46,9 +48,6 @@ enum
|
||||||
#define LABEL_HASPARM2 1
|
#define LABEL_HASPARM2 1
|
||||||
#define LABEL_ISSTRING 2
|
#define LABEL_ISSTRING 2
|
||||||
|
|
||||||
#define MAXCHEATLEN 20
|
|
||||||
#define NUMCHEATCODES (int32_t)ARRAY_SIZE(CheatStrings)
|
|
||||||
|
|
||||||
#define VM_INSTMASK 0xfff
|
#define VM_INSTMASK 0xfff
|
||||||
|
|
||||||
#define C_CUSTOMERROR(Text, ...) \
|
#define C_CUSTOMERROR(Text, ...) \
|
||||||
|
@ -115,7 +114,6 @@ extern int32_t g_structVarIDs;
|
||||||
extern intptr_t apScriptEvents[MAXEVENTS];
|
extern intptr_t apScriptEvents[MAXEVENTS];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char CheatStrings[][MAXCHEATLEN];
|
|
||||||
extern char g_scriptFileName[BMAX_PATH];
|
extern char g_scriptFileName[BMAX_PATH];
|
||||||
|
|
||||||
extern const uint32_t CheatFunctionFlags[];
|
extern const uint32_t CheatFunctionFlags[];
|
||||||
|
|
|
@ -20,12 +20,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "anim.h"
|
||||||
#include "colmatch.h"
|
#include "colmatch.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
#include "debugbreak.h"
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
|
|
||||||
#include "anim.h"
|
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "menus.h"
|
#include "menus.h"
|
||||||
#include "osdcmds.h"
|
#include "osdcmds.h"
|
||||||
|
@ -36,8 +35,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
# include "lunatic_game.h"
|
# include "lunatic_game.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debugbreak.h"
|
|
||||||
|
|
||||||
#if KRANDDEBUG
|
#if KRANDDEBUG
|
||||||
# define GAMEEXEC_INLINE
|
# define GAMEEXEC_INLINE
|
||||||
# define GAMEEXEC_STATIC
|
# define GAMEEXEC_STATIC
|
||||||
|
|
|
@ -24,9 +24,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#define gameexec_h_
|
#define gameexec_h_
|
||||||
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "sector.h" // mapstate_t
|
|
||||||
#include "gamedef.h" // vmstate_t
|
|
||||||
#include "events_defs.h"
|
#include "events_defs.h"
|
||||||
|
#include "gamedef.h" // vmstate_t
|
||||||
|
#include "sector.h" // mapstate_t
|
||||||
|
|
||||||
#ifdef LUNATIC
|
#ifdef LUNATIC
|
||||||
# include "lunatic_game.h"
|
# include "lunatic_game.h"
|
||||||
|
|
|
@ -23,8 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef gamevars_h_
|
#ifndef gamevars_h_
|
||||||
#define gamevars_h_
|
#define gamevars_h_
|
||||||
|
|
||||||
#include "gamedef.h"
|
|
||||||
#include "fix16.hpp"
|
#include "fix16.hpp"
|
||||||
|
#include "gamedef.h"
|
||||||
|
|
||||||
#define MAXGAMEVARS 2048 // must be a power of two
|
#define MAXGAMEVARS 2048 // must be a power of two
|
||||||
#define MAXVARLABEL 26
|
#define MAXVARLABEL 26
|
||||||
|
|
|
@ -23,6 +23,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef global_h_
|
#ifndef global_h_
|
||||||
#define global_h_
|
#define global_h_
|
||||||
|
|
||||||
|
#include "build.h"
|
||||||
|
#include "compat.h"
|
||||||
|
#include "duke3d.h"
|
||||||
|
#include "mmulti.h"
|
||||||
|
#include "quotes.h"
|
||||||
|
#include "sector.h"
|
||||||
|
#include "sounds.h"
|
||||||
|
|
||||||
#ifdef global_c_
|
#ifdef global_c_
|
||||||
#define G_EXTERN
|
#define G_EXTERN
|
||||||
#else
|
#else
|
||||||
|
@ -35,9 +43,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
// duke3d global soup :(
|
// duke3d global soup :(
|
||||||
|
|
||||||
// XXX: we don't #include everything we need.
|
|
||||||
#include "compat.h"
|
|
||||||
#include "build.h"
|
|
||||||
|
|
||||||
G_EXTERN int32_t g_interpolationCnt;
|
G_EXTERN int32_t g_interpolationCnt;
|
||||||
G_EXTERN int32_t g_interpolationLock;
|
G_EXTERN int32_t g_interpolationLock;
|
||||||
|
@ -45,11 +50,6 @@ G_EXTERN int32_t oldipos[MAXINTERPOLATIONS];
|
||||||
G_EXTERN int32_t *curipos[MAXINTERPOLATIONS];
|
G_EXTERN int32_t *curipos[MAXINTERPOLATIONS];
|
||||||
G_EXTERN int32_t bakipos[MAXINTERPOLATIONS];
|
G_EXTERN int32_t bakipos[MAXINTERPOLATIONS];
|
||||||
|
|
||||||
#include "mmulti.h"
|
|
||||||
|
|
||||||
#include "duke3d.h"
|
|
||||||
#include "sector.h"
|
|
||||||
#include "quotes.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,16 +20,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include "baselayer.h"
|
#include "baselayer.h"
|
||||||
|
|
||||||
#include "scriptfile.h"
|
|
||||||
#include "cache1d.h"
|
#include "cache1d.h"
|
||||||
#include "crc32.h"
|
|
||||||
|
|
||||||
#include "duke3d.h"
|
|
||||||
#include "common_game.h"
|
#include "common_game.h"
|
||||||
|
#include "compat.h"
|
||||||
|
#include "crc32.h"
|
||||||
|
#include "duke3d.h"
|
||||||
#include "grpscan.h"
|
#include "grpscan.h"
|
||||||
|
#include "scriptfile.h"
|
||||||
|
|
||||||
#ifndef EDUKE32_STANDALONE
|
#ifndef EDUKE32_STANDALONE
|
||||||
static void process_vaca13(int32_t crcval);
|
static void process_vaca13(int32_t crcval);
|
||||||
|
|
|
@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef EDUKE32_MACROS_H_
|
#ifndef EDUKE32_MACROS_H_
|
||||||
#define EDUKE32_MACROS_H_
|
#define EDUKE32_MACROS_H_
|
||||||
|
|
||||||
|
#include "mmulti.h"
|
||||||
|
|
||||||
// Macros, some from SW source
|
// Macros, some from SW source
|
||||||
|
|
||||||
#define BGSTRETCH (ud.bgstretch ? 1024 : 0)
|
#define BGSTRETCH (ud.bgstretch ? 1024 : 0)
|
||||||
|
|
|
@ -20,17 +20,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "cheats.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
#include "demo.h"
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
|
#include "input.h"
|
||||||
|
#include "in_android.h"
|
||||||
|
#include "menus.h"
|
||||||
#include "osdcmds.h"
|
#include "osdcmds.h"
|
||||||
#include "savegame.h"
|
#include "savegame.h"
|
||||||
#include "demo.h"
|
|
||||||
#include "xxhash.h"
|
#include "xxhash.h"
|
||||||
#include "input.h"
|
|
||||||
#include "menus.h"
|
|
||||||
#include "cheats.h"
|
|
||||||
|
|
||||||
#include "in_android.h"
|
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
droidinput_t droidinput;
|
droidinput_t droidinput;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,8 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef player_h_
|
#ifndef player_h_
|
||||||
#define player_h_
|
#define player_h_
|
||||||
|
|
||||||
#include "inv.h"
|
|
||||||
#include "fix16.h"
|
#include "fix16.h"
|
||||||
|
#include "inv.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -20,22 +20,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "duke3d.h"
|
|
||||||
#include "compat.h"
|
|
||||||
#include "screens.h"
|
|
||||||
#include "colmatch.h"
|
|
||||||
#include "input.h"
|
|
||||||
#include "anim.h"
|
|
||||||
#include "sbar.h"
|
|
||||||
#include "menus.h"
|
|
||||||
#include "osdfuncs.h"
|
|
||||||
#include "demo.h"
|
|
||||||
#include "mdsprite.h"
|
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
#include "android.h"
|
#include "android.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "anim.h"
|
||||||
|
#include "colmatch.h"
|
||||||
|
#include "compat.h"
|
||||||
|
#include "demo.h"
|
||||||
|
#include "duke3d.h"
|
||||||
|
#include "input.h"
|
||||||
|
#include "mdsprite.h"
|
||||||
|
#include "sbar.h"
|
||||||
|
#include "screens.h"
|
||||||
|
|
||||||
#define COLOR_RED redcol
|
#define COLOR_RED redcol
|
||||||
#define COLOR_WHITE whitecol
|
#define COLOR_WHITE whitecol
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef sector_h_
|
#ifndef sector_h_
|
||||||
#define sector_h_
|
#define sector_h_
|
||||||
|
|
||||||
#include "gamevars.h"
|
|
||||||
#include "actors.h" // actor_t
|
#include "actors.h" // actor_t
|
||||||
#include "player.h" // playerspawn_t
|
#include "gamevars.h"
|
||||||
|
#include "macros.h"
|
||||||
#include "namesdyn.h" // for G_GetForcefieldPicnum()
|
#include "namesdyn.h" // for G_GetForcefieldPicnum()
|
||||||
|
#include "player.h" // playerspawn_t
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in a new issue