Archive.filePath
This commit is contained in:
@@ -74,3 +74,6 @@
|
||||
id (Uuid.v4)
|
||||
components (new Map)
|
||||
files []))
|
||||
|
||||
(method filePath [file]
|
||||
(joinPath archiveDir "files" file))
|
@@ -17,7 +17,7 @@
|
||||
(cond
|
||||
((hasComponent e Images2)
|
||||
(let [images (readComponent e Images2)]
|
||||
(.onComplete (BitmapData.loadFromFile (joinPath archive.archiveDir "files" (nth images.imageFiles images.pinnedImageIndex)))
|
||||
(.onComplete (BitmapData.loadFromFile (archive.filePath (nth images.imageFiles images.pinnedImageIndex)))
|
||||
->bitmapData {
|
||||
(loadGraphic bitmapData)
|
||||
})))
|
||||
|
Reference in New Issue
Block a user