Subversion Repositories spk

Rev

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

Rev 127 Rev 129
Line 241... Line 241...
241
			else if ( tofile.Left(2) == "*." )
241
			else if ( tofile.Left(2) == "*." )
242
				f.ChangeFileExt(tofile.Right(3));
242
				f.ChangeFileExt(tofile.Right(3));
243
			else
243
			else
244
				f.SetFilename(tofile);
244
				f.SetFilename(tofile);
245
 
245
 
246
			if ( !f.WriteFilePointer() )
246
			if ( !f.writeFilePointer() )
247
				printf("Error: unable to write file: %s\n", tofile.c_str() );
247
				printf("Error: unable to write file: %s\n", tofile.c_str() );
248
			else
248
			else
249
				printf("%s has been unpacked to %s\n", file.c_str(), f.GetFilename().c_str() );
249
				printf("%s has been unpacked to %s\n", file.c_str(), f.GetFilename().c_str() );
250
		}
250
		}
251
	}
251
	}
Line 285... Line 285...
285
			else if ( tofile.Left(2) == "*." )
285
			else if ( tofile.Left(2) == "*." )
286
				f.ChangeFileExt(tofile.Right(3));
286
				f.ChangeFileExt(tofile.Right(3));
287
			else
287
			else
288
				f.SetFilename(tofile);
288
				f.SetFilename(tofile);
289
 
289
 
290
			if ( !f.WriteFilePointer() )
290
			if ( !f.writeFilePointer() )
291
				printf("Error: unable to write file: %s\n", tofile.c_str() );
291
				printf("Error: unable to write file: %s\n", tofile.c_str() );
292
			else
292
			else
293
				printf("%s has been packed to %s\n", file.c_str(), f.GetFilename().c_str() );
293
				printf("%s has been packed to %s\n", file.c_str(), f.GetFilename().c_str() );
294
		}
294
		}
295
	}
295
	}