Prepare v0.0.2 pre-release
CI / macos-latest (push) Has been cancelled
CI / ubuntu-latest (push) Has been cancelled
CI / windows-latest (push) Has been cancelled

This commit is contained in:
pleb
2026-07-21 10:27:02 -07:00
parent 456893415d
commit 266483f3cf
17 changed files with 578 additions and 58 deletions
+4 -6
View File
@@ -1,4 +1,5 @@
mod config;
mod eq_discovery;
mod events;
mod kokoro;
mod speakers;
@@ -76,15 +77,12 @@ async fn main() -> Result<()> {
);
let tailer_generation = Arc::new(AtomicUsize::new(0));
if let Some(path) = config.log_path.clone() {
if config.log_path.as_ref().is_some_and(|path| path.is_file()) {
let path = config.log_path.clone().expect("log path was checked");
spawn_log_tailer(path, worker_sender.clone(), tailer_generation.clone(), 0);
}
let mut app = App::new(config, speakers);
if app.config.log_path.is_none() {
app.activity
.push_front("First run: press [s] and configure your EverQuest log path.".into());
}
let channels = RuntimeChannels {
worker_receiver,
worker_sender,
@@ -128,7 +126,7 @@ async fn run_loop(
.audio_control
.send(AudioCommand::SetVolume(app.config.volume));
let generation = channels.tailer_generation.fetch_add(1, Ordering::Relaxed) + 1;
if let Some(path) = app.config.log_path.clone() {
if let Some(path) = app.config.log_path.clone().filter(|path| path.is_file()) {
spawn_log_tailer(
path,
channels.worker_sender.clone(),