Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import struct
- from util import *
- scale = 1.2
- lvd = open(sys.argv[1], "rb+")
- lvd.seek(0xfe) # Seeking to section for main platform
- for s in range(2):
- lvd.seek(1,1)
- count = readu32be(lvd) # Reading section count
- for i in range(count):
- lvd.seek(1,1)
- x = readfloatbe(lvd)
- y = readfloatbe(lvd)
- lvd.seek(-8,1)
- x *= scale
- y *= scale
- lvd.write(struct.pack(">f", x))
- lvd.write(struct.pack(">f", y))
- lvd.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement