Archive.filePath

This commit is contained in:
2022-09-18 22:42:18 +00:00
parent ff512c6f9e
commit 0d295198df
2 changed files with 4 additions and 1 deletions

View File

@@ -74,3 +74,6 @@
id (Uuid.v4) id (Uuid.v4)
components (new Map) components (new Map)
files [])) files []))
(method filePath [file]
(joinPath archiveDir "files" file))

View File

@@ -17,7 +17,7 @@
(cond (cond
((hasComponent e Images2) ((hasComponent e Images2)
(let [images (readComponent 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 { ->bitmapData {
(loadGraphic bitmapData) (loadGraphic bitmapData)
}))) })))