X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fcmdlib.c;h=103047c029eb85e2542c86d7d199bbdff6fc14ab;hp=41fd1ca140c7b15389c706e447d76e200379b14c;hb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc;hpb=62d99f889c0e98be65f779d3983109c84ce58cec diff --git a/tools/quake3/common/cmdlib.c b/tools/quake3/common/cmdlib.c index 41fd1ca1..103047c0 100644 --- a/tools/quake3/common/cmdlib.c +++ b/tools/quake3/common/cmdlib.c @@ -244,9 +244,6 @@ char *ExpandArg( const char *path ){ char *ExpandPath( const char *path ){ static char full[1024]; - if ( !qdir ) { - Error( "ExpandPath called without qdir set" ); - } if ( path[0] == '/' || path[0] == '\\' || path[1] == ':' ) { strcpy( full, path ); return full; @@ -255,33 +252,6 @@ char *ExpandPath( const char *path ){ return full; } -char *ExpandGamePath( const char *path ){ - static char full[1024]; - if ( !gamedir[0] ) { - Error( "ExpandGamePath called without gamedir set" ); - } - if ( path[0] == '/' || path[0] == '\\' || path[1] == ':' ) { - strcpy( full, path ); - return full; - } - sprintf( full, "%s%s", gamedir, path ); - return full; -} - -char *ExpandPathAndArchive( const char *path ){ - char *expanded; - char archivename[1024]; - - expanded = ExpandPath( path ); - - if ( archive ) { - sprintf( archivename, "%s/%s", archivedir, path ); - QCopyFile( expanded, archivename ); - } - return expanded; -} - - char *copystring( const char *s ){ char *b; b = safe_malloc( strlen( s ) + 1 );