fixing android issues.

This commit is contained in:
Bryce Covert
2017-12-05 18:32:25 -08:00
parent 850a0a945d
commit a33c75e9ac
10 changed files with 66 additions and 33 deletions

View File

@@ -100,10 +100,15 @@
(put! (get-in starting-entities# [:fg-actions :script-chan])
(fn [starting-entities#]
(let [~entities (atom starting-entities#)]
(thread (binding [*fg-bg-key* :fg-actions]
~@forms
(change-script-state ~entities false)
(utils/save @~entities "autosave" "Autosave"))))))))
(thread (try (binding [*fg-bg-key* :fg-actions]
~@forms
(change-script-state ~entities false)
(utils/save @~entities "autosave" "Autosave"))
(catch clojure.lang.ExceptionInfo e#
(println "caught exception" e#))
(catch Exception e#
(println "Caught exception")
(.printStackTrace e#)))))))))
(defn force-end [entities current-action key]
(do (when current-action