bug fixes.

This commit is contained in:
Bryce Covert
2015-11-22 13:42:44 -08:00
parent 84ba2ab68a
commit 95b9327522
2 changed files with 11 additions and 5 deletions

View File

@@ -73,8 +73,9 @@
n (.getFileNameAndSize rs i (make-array Integer/TYPE 1))
bb (ByteBuffer/allocateDirect len)]
:when (.endsWith n ".edn")]
(.fileRead rs n bb len)
(-> bb .asCharBuffer .toString edn/read-string)))
(do
(.fileRead rs n bb len)
(-> bb .asCharBuffer .toString edn/read-string))))
(for [save-file (.list (files! :local ".") ".edn")]
(edn/read-string (.readString save-file)))))
@@ -115,3 +116,8 @@
(.write png f pm)
(.dispose png))))
(defn delete-file [filename]
(steamify
(.fileDelete (SteamRemoteStorage. nil) filename)
(.delete (files! :local filename))))