forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBundleFile.py
More file actions
31 lines (25 loc) · 757 Bytes
/
Copy pathBundleFile.py
File metadata and controls
31 lines (25 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from enum import IntFlag
class CompressionFlags(IntFlag):
NO = 0
LZMA = 1
LZ4 = 0b10
LZ4HC = 0b11
LZHAM = 0b100
META_UNCOMPRESSED = 0b1000000
META_LZ4 = 0b11000010
class ArchiveFlagsOld(IntFlag):
CompressionTypeMask = 0b111111
BlocksAndDirectoryInfoCombined = 0x40
BlocksInfoAtTheEnd = 0x80
OldWebPluginCompatibility = 0x100
UnityCNEncryption = 0
BlockInfoNeedPaddingAtStart = 0
UsesAssetBundleEncryption = 0x200
class ArchiveFlags(IntFlag):
CompressionTypeMask = 0b111111
BlocksAndDirectoryInfoCombined = 0x40
BlocksInfoAtTheEnd = 0x80
OldWebPluginCompatibility = 0x100
UnityCNEncryption = 0x100
BlockInfoNeedPaddingAtStart = 0x200
UsesAssetBundleEncryption = 0x400