forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
20 lines (17 loc) · 823 Bytes
/
config.py
File metadata and controls
20 lines (17 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# used when no version is defined by the SerializedFile or its BundleFile
FALLBACK_UNITY_VERSION = "2.5.0f5"
# determines if the typetree structures for the Object types will be parsed
# disabling this will reduce the load time by a lot (half of the time is spend on parsing the typetrees)
# but it will also prevent saving an edited file
SERIALIZED_FILE_PARSE_TYPETREE = True
# GLOBAL WARNING SUPPRESSION
FALLBACK_VERSION_WARNED = False # for FALLBACK_UNITY_VERSION
# GET FUNCTIONS
def get_fallback_version():
global FALLBACK_VERSION_WARNED
if not FALLBACK_VERSION_WARNED:
print(
f"Warning: 0.0.0 version found, defaulting to UnityPy.config.FALLBACK_UNITY_VERSION ({FALLBACK_UNITY_VERSION})" # noqa: E501
)
FALLBACK_VERSION_WARNED = True
return FALLBACK_UNITY_VERSION