mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 07:07:09 +00:00
Change nanoseconds to seconds in extract_assets.py (#829)
This commit is contained in:
parent
515163e6cd
commit
7822d130f9
1 changed files with 2 additions and 2 deletions
|
@ -52,12 +52,12 @@ def ExtractFunc(fullPath):
|
||||||
if not globalForce:
|
if not globalForce:
|
||||||
if fullPath in globalExtractedAssetsTracker:
|
if fullPath in globalExtractedAssetsTracker:
|
||||||
timestamp = globalExtractedAssetsTracker[fullPath]["timestamp"]
|
timestamp = globalExtractedAssetsTracker[fullPath]["timestamp"]
|
||||||
modificationTime = int(os.path.getmtime(fullPath) * (10**9))
|
modificationTime = int(os.path.getmtime(fullPath))
|
||||||
if modificationTime < timestamp:
|
if modificationTime < timestamp:
|
||||||
# XML has not been modified since last extraction.
|
# XML has not been modified since last extraction.
|
||||||
return
|
return
|
||||||
|
|
||||||
currentTimeStamp = time.time_ns()
|
currentTimeStamp = int(time.time())
|
||||||
|
|
||||||
if isScene:
|
if isScene:
|
||||||
ExtractScene(fullPath, outPath, outSourcePath)
|
ExtractScene(fullPath, outPath, outSourcePath)
|
||||||
|
|
Loading…
Reference in a new issue