* -pk3: autopackager mode(complete Q3 support); bsp path as input; switches: -dbg - talkative mode, -png - include pngs, at highest priority
		is using file 'gamename.exclude' to exclude vanilla game resources
		tip: ioq3, netradiant, compiler (and packager) treat *.pk3dir directories as separate pk3 files
This commit is contained in:
Garux
2017-08-01 13:51:52 +03:00
parent af4e2d29cf
commit eef3995202
11 changed files with 5764 additions and 4 deletions

View File

@@ -70,7 +70,8 @@ void ViewShader( const char *pFile, const char *pName ){
break;
}
}
for ( const char* i = substr + strlen( strFind.c_str() ); i < strLook.c_str() + strlen( strLook.c_str() ); i++ ){
const char* b = strLook.c_str() + strlen( strLook.c_str() );
for ( const char* i = substr + strlen( strFind.c_str() ); i < b; i++ ){
if( (strncmp( i, "\t", 1 ) == 0) || (strncmp( i, " ", 1 ) == 0) ){
endOK = true;
continue;
@@ -113,7 +114,8 @@ void ViewShader( const char *pFile, const char *pName ){
break;*/
}
//fix up length
for ( const char* i = strLook.c_str(); i < strLook.c_str() + strlen( strLook.c_str() ) - 1; i++ ){
const char* b = strLook.c_str() + strlen( strLook.c_str() ) - 1;
for ( const char* i = strLook.c_str(); i < b; i++ ){
if ( (strncmp( i, "\r\n", 2 ) == 0) ){
length--;
}