2015-05-19 22:05:20 +00:00
|
|
|
|
|
|
|
#include "build.h"
|
|
|
|
|
|
|
|
#include "common_game.h"
|
|
|
|
|
2015-05-19 22:07:18 +00:00
|
|
|
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)
|
|
|
|
{
|
2015-09-23 17:55:31 +00:00
|
|
|
Bfree(g_grpNamePtr);
|
2015-05-19 22:07:18 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2015-05-19 22:05:20 +00:00
|
|
|
|
|
|
|
void SW_InitMultiPsky(void)
|
|
|
|
{
|
2015-05-27 08:47:34 +00:00
|
|
|
// default
|
2019-04-08 06:26:36 +00:00
|
|
|
psky_t * const defaultsky = tileSetupSky(DEFAULTPSKY);
|
2015-05-27 08:47:34 +00:00
|
|
|
defaultsky->lognumtiles = 1;
|
|
|
|
defaultsky->horizfrac = 8192;
|
2015-05-19 22:05:20 +00:00
|
|
|
}
|