Some checks failed
Build Dusk / build-linux (push) Failing after 1m24s
Build Dusk / run-tests (push) Failing after 1m17s
Build Dusk / build-psp (push) Failing after 1m34s
Build Dusk / build-dolphin (push) Failing after 2m5s
12 lines
322 B
Python
12 lines
322 B
Python
processedAssets = {}
|
|
|
|
def assetGetCache(assetPath):
|
|
if assetPath in processedAssets:
|
|
return processedAssets[assetPath]
|
|
return None
|
|
|
|
def assetCache(assetPath, processedData):
|
|
if assetPath in processedAssets:
|
|
return processedAssets[assetPath]
|
|
processedAssets[assetPath] = processedData
|
|
return processedData |