mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2026-03-22 06:08:52 +00:00
15 lines
453 B
Rust
15 lines
453 B
Rust
use babylonia_terminal_sdk::game_state::GameState;
|
|
|
|
use crate::messages::config::{ConfigInput, ConfigOutput};
|
|
|
|
pub async fn listen_config() {
|
|
let mut receiver = ConfigInput::get_dart_signal_receiver();
|
|
while let Some(_) = receiver.recv().await {
|
|
let config = GameState::get_config().await;
|
|
ConfigOutput {
|
|
config_path: config.config_dir.to_str().unwrap().to_string(),
|
|
}
|
|
.send_signal_to_dart();
|
|
}
|
|
}
|