Skip to content

Commit

Permalink
Fix windows parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdone committed Feb 10, 2024
1 parent 9892768 commit 3f6e42b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/hsbox/demo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@
(def demoinfo-dir-path dir))

(defn find-demoparser []
(let [csdemoparser (str demoinfo-dir-path "/csdemoparser")
(let [csdemoparser-exe (str demoinfo-dir-path "/csdemoparser.exe")
csdemoparser (str demoinfo-dir-path "/csdemoparser")
csdemoparser-dev-exe (str demoinfo-dir-path "/target/release/csdemoparser.exe")
csdemoparser-dev (str demoinfo-dir-path "/target/release/csdemoparser")
demoinfogo-exe (str demoinfo-dir-path "/demoinfogo.exe")
demoinfogo (str demoinfo-dir-path "/demoinfogo")]
(cond
(file-exists? csdemoparser-exe) [csdemoparser-exe]
(file-exists? csdemoparser) [csdemoparser]
(file-exists? csdemoparser-dev-exe) [csdemoparser-dev-exe]
(file-exists? csdemoparser-dev) [csdemoparser-dev]
(file-exists? demoinfogo-exe) [demoinfogo-exe "-hsbox"]
(file-exists? demoinfogo) [demoinfogo "-hsbox"]
:else (throw (Exception. (str "No demo parser found in '" demoinfo-dir-path "'"))))))

Expand Down

0 comments on commit 3f6e42b

Please sign in to comment.