mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-11 16:49:01 +01:00
fix crash
This commit is contained in:
1 parent
cce163921e
commit
e848bfbd81
1 file changed
+2
@@ -56,8 +56,10 @@ struct Args {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let config_dir = dirs::config_dir().unwrap().join("gopher64");
|
||||
let cache_dir = dirs::cache_dir().unwrap().join("gopher64");
|
||||
|
||||
let _ = std::fs::create_dir_all(config_dir.clone());
|
||||
let _ = std::fs::create_dir_all(cache_dir.clone());
|
||||
let _ = std::fs::remove_file(cache_dir.clone().join("game_running"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user