View | Details | Raw Unified
Collapse All | Expand All

(-) file_not_specified_in_diff (-10 / +4 lines)
 Lines 13-38    Link Here 
{
{
	PHYSFS_file *pfile = (PHYSFS_file *)context->hidden.unknown.data1;
	PHYSFS_file *pfile = (PHYSFS_file *)context->hidden.unknown.data1;
	
	
	int target;
	
	int curpos = PHYSFS_tell(pfile);
	
	switch (whence) {
	switch (whence) {
	default:
	default:
	case SEEK_SET:
	case SEEK_SET:
		target = offset;
		PHYSFS_seek(pfile, offset);
		break;
		break;
	case SEEK_CUR:
	case SEEK_CUR:
		target = curpos + offset;
		PHYSFS_seek(pfile, PHYSFS_tell(pfile) + offset);
		break;
		break;
	case SEEK_END:
	case SEEK_END:
		target = PHYSFS_fileLength(pfile) + offset;
		PHYSFS_seek(pfile, PHYSFS_fileLength(pfile) + offset);
		break;
		break;
	}
	}
	
	
	PHYSFS_seek(pfile, target);
	return PHYSFS_tell(pfile);
	
	return curpos;
}
}