|
Lines 312-319
char *ExpandArg (const char *path)
|
Link Here
|
|---|
|
char *ExpandPath (const char *path) | char *ExpandPath (const char *path) |
{ | { |
static char full[1024]; | static char full[1024]; |
if (!qdir) |
|
Error ("ExpandPath called without qdir set"); |
|
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { | if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { |
strcpy( full, path ); | strcpy( full, path ); |
return full; | return full; |
|
Lines 325-332
char *ExpandPath (const char *path)
|
Link Here
|
|---|
|
char *ExpandGamePath (const char *path) | char *ExpandGamePath (const char *path) |
{ | { |
static char full[1024]; | static char full[1024]; |
if (!qdir) |
|
Error ("ExpandGamePath called without qdir set"); |
|
if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { | if (path[0] == '/' || path[0] == '\\' || path[1] == ':') { |
strcpy( full, path ); | strcpy( full, path ); |
return full; | return full; |