Read from steam or local file.
This commit is contained in:
@@ -74,12 +74,11 @@
|
||||
|
||||
(defn snapshot-screenshots []
|
||||
(doall (for [snapshot (snapshot-list)]
|
||||
(do
|
||||
(steam/download-screenshot (:screenshot snapshot))
|
||||
(update-in snapshot [:screenshot]
|
||||
#(try (Pixmap. (files! :local %) )
|
||||
(catch Exception e
|
||||
(Pixmap. 160 120 Pixmap$Format/RGB888))))))))
|
||||
(assoc-in snapshot [:screenshot]
|
||||
(try (let [bytes (steam/get-screenshot-bytes (:screenshot snapshot))]
|
||||
(Pixmap. bytes 0 (count bytes)))
|
||||
(catch Exception e
|
||||
(Pixmap. 160 120 Pixmap$Format/RGB888)))))))
|
||||
|
||||
(defn save-chapter [entities chapter]
|
||||
(let [prefs (.getPreferences (Gdx/app) "ticks-tales-saves")
|
||||
|
||||
Reference in New Issue
Block a user