Subversion Repositories spk

Rev

Rev 175 | Rev 181 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 175 Rev 178
Line 463... Line 463...
463
			newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
463
			newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
464
			start += (newFile->GetDataSize() + 1);
464
			start += (newFile->GetDataSize() + 1);
465
 
465
 
466
			if ( special )
466
			if ( special )
467
			{
467
			{
468
				if ( newFile->CheckFileExt("pck") )
468
				if (newFile->checkFileExt("pck"))
469
					newFile->UnPCKFile();
469
					newFile->UnPCKFile();
470
 
470
 
471
				// read data into lines
471
				// read data into lines
472
				Utils::String data((const char *)newFile->GetData());
472
				Utils::String data((const char *)newFile->GetData());
473
				data.removeChar('\r');
473
				data.removeChar('\r');
Line 2033... Line 2033...
2033
		bool deleteData = false;
2033
		bool deleteData = false;
2034
		unsigned char *data = NULL;
2034
		unsigned char *data = NULL;
2035
		size_t size;
2035
		size_t size;
2036
 
2036
 
2037
		// cant do these yet
2037
		// cant do these yet
2038
		if ( f->CheckFileExt("pbb") || f->CheckFileExt("bob") )
2038
		if (f->checkFileExt("pbb") || f->checkFileExt("bob"))
2039
		{
2039
		{
2040
			data = f->BobDecompile(&size);
2040
			data = f->BobDecompile(&size);
2041
			if ( !data || !size ) {
2041
			if ( !data || !size ) {
2042
				// search for the pbd or bod files that match and use them instead
2042
				// search for the pbd or bod files that match and use them instead
2043
				Utils::String file;
2043
				Utils::String file;
Line 2072... Line 2072...
2072
				if ( !f->ReadFromFile() )
2072
				if ( !f->ReadFromFile() )
2073
					continue;
2073
					continue;
2074
			}
2074
			}
2075
 
2075
 
2076
 
2076
 
2077
			if ( f->CheckFileExt("pbb") || f->CheckFileExt("pbd") )
2077
			if ( f->checkFileExt("pbb") || f->checkFileExt("pbd") )
2078
				data = f->UnPCKFile(&size);
2078
				data = f->UnPCKFile(&size);
2079
			else
2079
			else
2080
			{
2080
			{
2081
				data = f->GetData();
2081
				data = f->GetData();
2082
				size = f->GetDataSize();
2082
				size = f->GetDataSize();
Line 2561... Line 2561...
2561
			{
2561
			{
2562
				if ( f->PCKFile() )
2562
				if ( f->PCKFile() )
2563
					f->ChangeFileExt("pbd");
2563
					f->ChangeFileExt("pbd");
2564
			}	
2564
			}	
2565
 
2565
 
2566
			else */if ( f->CheckFileExt("bob") )
2566
			else */if ( f->checkFileExt("bob") )
2567
			{
2567
			{
2568
				if ( f->PCKFile() )
2568
				if ( f->PCKFile() )
2569
					f->ChangeFileExt("pbb");
2569
					f->changeFileExt("pbb");
2570
			}
2570
			}
2571
		}
2571
		}
2572
	}
2572
	}
2573
}
2573
}
2574
 
2574