Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 2530 → Rev 2531

/polymer/eduke32/source/astub.c
8380,10 → 8380,11
wm_msgbox(tempbuf, "%s", s);
}
 
static void AddGamePath(const char *buffer)
 
// CODEDUP game.c
static void G_AddPath(const char *buffer)
{
struct strllist *s;
s = (struct strllist *)Bcalloc(1,sizeof(struct strllist));
struct strllist *s = Bcalloc(1,sizeof(struct strllist));
s->str = Bstrdup(buffer);
 
if (CommandPaths)
8393,17 → 8394,24
t->next = s;
return;
}
 
CommandPaths = s;
}
 
// CODEDUP game.c
static void G_AddGroup(const char *buffer)
{
struct strllist *s;
s = (struct strllist *)Bcalloc(1,sizeof(struct strllist));
s->str = Bstrdup(buffer);
if (Bstrchr(s->str,'.') == 0)
Bstrcat(s->str,".grp");
char buf[BMAX_PATH];
 
struct strllist *s = Bcalloc(1,sizeof(struct strllist));
 
Bstrcpy(buf, buffer);
 
if (Bstrchr(buf,'.') == 0)
Bstrcat(buf,".grp");
 
s->str = Bstrdup(buf);
 
if (CommandGrps)
{
struct strllist *t;
8498,7 → 8506,7
#endif
Bstrncpy(g_modDir, argv[i+1], sizeof(g_modDir));
g_modDir[sizeof(g_modDir)-1] = 0;
AddGamePath(argv[i+1]);
G_AddPath(argv[i+1]);
 
COPYARG(i);
COPYARG(i+1);
8685,7 → 8693,7
case 'J':
c++;
if (!*c) break;
AddGamePath(c);
G_AddPath(c);
COPYARG(i);
break;
case 'g':
/polymer/eduke32/source/game.c
8567,12 → 8567,13
return 0;
}
 
 
// CODEDUP astub.c
static void G_AddGroup(const char *buffer)
{
struct strllist *s;
char buf[BMAX_PATH];
 
s = (struct strllist *)Bcalloc(1,sizeof(struct strllist));
struct strllist *s = Bcalloc(1,sizeof(struct strllist));
 
Bstrcpy(buf, buffer);
 
8591,10 → 8592,10
CommandGrps = s;
}
 
// CODEDUP astub.c
static void G_AddPath(const char *buffer)
{
struct strllist *s;
s = (struct strllist *)Bcalloc(1,sizeof(struct strllist));
struct strllist *s = Bcalloc(1,sizeof(struct strllist));
s->str = Bstrdup(buffer);
 
if (CommandPaths)