From d339db6cb6ea637ffcb5791a1764f676524244a3 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 10 Jan 2017 19:58:23 -0500 Subject: [PATCH] Changed file that highscore gets saved to. Should fix this bug https://scratch.mit.edu/discuss/post/2389119/ --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 53c231c..3007bec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,7 +146,7 @@ fn write_highscore(path: &str, score: u32) -> io::Result<()> { } fn main() { - let highscore_file = "/usr/local/.snake_highscore"; + let highscore_file = "snake_highscore"; let rb = match RustBox::init(Default::default()) { Ok(v) => v, Err(e) => panic!("{}", e),