changeset 601:bc2858781507

also write moves to vbm file.
author Robert McIntyre <rlm@mit.edu>
date Sun, 02 Sep 2012 09:24:15 -0500
parents 31128a10ee28
children 0e30fd920e6a
files clojure/com/aurellem/run/final_cut.clj
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/run/final_cut.clj	Sun Sep 02 09:20:09 2012 -0500
     1.2 +++ b/clojure/com/aurellem/run/final_cut.clj	Sun Sep 02 09:24:15 2012 -0500
     1.3 @@ -21,15 +21,14 @@
     1.4      moves-render-fn
     1.5      render-ram-map?
     1.6      initial-state
     1.7 -    moves
     1.8 -    
     1.9 -    ]
    1.10 +    moves]
    1.11 +     (write-moves! moves (File. target-dir "rlm-yellow-hack.vbm"))
    1.12       (let [ram-map-dir (File. target-dir "ram-map")
    1.13             frames-dir (File. target-dir "frames")
    1.14             moves-dir (File. target-dir "moves")
    1.15             audio-file (File. target-dir "audio.wav")
    1.16             _ (.mkdir target-dir)
    1.17 -           _ (.mkdir ram-map-dir)
    1.18 +           _ (if render-ram-map? (.mkdir ram-map-dir))
    1.19             _ (.mkdir frames-dir)
    1.20             _ (.mkdir moves-dir)
    1.21             wave-writer (WaveWriter. audio-file)