Use unity versions in archive names

This commit is contained in:
Jáchym Toušek
2019-05-18 08:18:08 +02:00
parent 42b9aa0909
commit 377a36455d
5 changed files with 41 additions and 55 deletions

View File

@@ -1,9 +1,8 @@
import os
from sys import argv
path = argv[1]
assetsbundlePath = argv[1]
assetsbundlePath = os.path.join(path, "sharedassets0.assets")
if os.path.exists(assetsbundlePath):
with open(assetsbundlePath, "rb") as assetsBundle:
unityVersion = assetsBundle.read(28)[20:].decode("utf-8").rstrip("\0")