Update UI compiler

This commit is contained in:
Jáchym Toušek
2019-04-18 18:56:49 +02:00
parent 6a5c2174bc
commit e6c94ed9ab
5 changed files with 64 additions and 37 deletions

12
scripts/AssetVersion.py Normal file
View File

@@ -0,0 +1,12 @@
import os
from sys import argv
path = 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")
print(unityVersion)
else:
print("Nothing found")