Release 2.1.0
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / android (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / publish (push) Has been cancelled
Preparing against an opponent (openings), one fixed engine search for the game review everywhere, !! and ! recalibrated on chess.com (check set of 15 games), 100 classic sample games that update with the program. Formatting by cargo fmt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dd26e7261a
commit
262c0b1711
28 changed files with 1621 additions and 495 deletions
|
|
@ -242,15 +242,13 @@ impl Settings {
|
|||
};
|
||||
migrate_legacy_config(&path);
|
||||
match std::fs::read(&path) {
|
||||
Ok(bytes) => {
|
||||
serde_json::from_slice(&bytes).unwrap_or_else(|e| {
|
||||
eprintln!(
|
||||
"settings: cannot parse {}: {e}; using defaults",
|
||||
path.display()
|
||||
);
|
||||
Self::default()
|
||||
})
|
||||
}
|
||||
Ok(bytes) => serde_json::from_slice(&bytes).unwrap_or_else(|e| {
|
||||
eprintln!(
|
||||
"settings: cannot parse {}: {e}; using defaults",
|
||||
path.display()
|
||||
);
|
||||
Self::default()
|
||||
}),
|
||||
Err(e) if e.kind() == std::io::ErrorKind::NotFound => Self::first_start(),
|
||||
Err(_) => Self::default(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue