mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
b242259be1
Patch from Striker. git-svn-id: https://svn.eduke32.com/eduke32@7509 1a8010ca-5511-0410-912e-c29ae57300e0
49 lines
947 B
C++
49 lines
947 B
C++
|
|
#include "build.h"
|
|
|
|
#include "common_game.h"
|
|
|
|
static const char *defaultgrpfilename = "sw.grp";
|
|
static const char *defaultdeffilename = "sw.def";
|
|
|
|
// g_grpNamePtr can ONLY point to a malloc'd block (length BMAX_PATH)
|
|
char *g_grpNamePtr = NULL;
|
|
|
|
void clearGrpNamePtr(void)
|
|
{
|
|
Bfree(g_grpNamePtr);
|
|
// g_grpNamePtr assumed to be assigned to right after
|
|
}
|
|
|
|
const char *G_DefaultGrpFile(void)
|
|
{
|
|
return defaultgrpfilename;
|
|
}
|
|
const char *G_GrpFile(void)
|
|
{
|
|
if (g_grpNamePtr == NULL)
|
|
return G_DefaultGrpFile();
|
|
else
|
|
return g_grpNamePtr;
|
|
}
|
|
|
|
const char *G_DefaultDefFile(void)
|
|
{
|
|
return defaultdeffilename;
|
|
}
|
|
const char *G_DefFile(void)
|
|
{
|
|
if (g_defNamePtr == NULL)
|
|
return G_DefaultDefFile();
|
|
else
|
|
return g_defNamePtr;
|
|
}
|
|
|
|
|
|
void SW_InitMultiPsky(void)
|
|
{
|
|
// default
|
|
psky_t * const defaultsky = tileSetupSky(DEFAULTPSKY);
|
|
defaultsky->lognumtiles = 1;
|
|
defaultsky->horizfrac = 8192;
|
|
}
|