1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-21 04:24:43 +00:00

Change nanoseconds to seconds in extract_assets.py (#829)

This commit is contained in:
Anghelo Carvajal 2021-05-28 00:03:47 -04:00 committed by GitHub
parent 515163e6cd
commit 7822d130f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,12 +52,12 @@ def ExtractFunc(fullPath):
if not globalForce:
if fullPath in globalExtractedAssetsTracker:
timestamp = globalExtractedAssetsTracker[fullPath]["timestamp"]
modificationTime = int(os.path.getmtime(fullPath) * (10**9))
modificationTime = int(os.path.getmtime(fullPath))
if modificationTime < timestamp:
# XML has not been modified since last extraction.
return
currentTimeStamp = time.time_ns()
currentTimeStamp = int(time.time())
if isScene:
ExtractScene(fullPath, outPath, outSourcePath)