@@ 49,21 49,6 @@ def get_sections(f, filesize):
result[key] = int(pointer) - 1
# Check RST version: is WinPlan data present?
(result['winplan'], result['extratargets'],) = get_version(f, filesize)
- if result['winplan']:
- f.seek(44) # Position of LEECHx.DAT
- (result['leech'],) = struct.unpack('< i', f.read(4))
- if not result['leech']:
- result['leech'] = None
- else:
- result['leech'] = int(result['leech']) - 1
- (result['ufo'],) = struct.unpack('< i', f.read(4))
- if not result['ufo']:
- result['ufo'] = None
- else:
- result['ufo'] = int(result['ufo']) - 1
- else:
- result['leech'] = None
- result['ufo'] = None
# Check if pointers are valid
for pointer in result.values():
if pointer is not None and not valid_pointer(pointer, filesize, 2):