{}
Some(cmd) => {
- (self.process_command)(Arc::clone(&self.service), cmd);
+ if !(self.process_command)(Arc::clone(&self.service), cmd) {
+ break;
+ }
}
}
}
+ info!("[Console] Shutdown.")
}
}
\ No newline at end of file
diff --git a/core/src/service/tcp_network/pad_server/implements.rs b/core/src/service/tcp_network/pad_server/implements.rs
index c4d8cfc..d4288bf 100644
--- a/core/src/service/tcp_network/pad_server/implements.rs
+++ b/core/src/service/tcp_network/pad_server/implements.rs
@@ -5,7 +5,7 @@ use std::time::Duration;
use log::{error, info, trace, warn};
use tokio::{join, select, spawn};
use tokio::net::{TcpListener, TcpStream};
-use tokio::sync::watch::{channel, Receiver, Sender};
+use tokio::sync::watch::{channel};
use tokio::time::sleep;
use nogamepads::entry_mutex;
use crate::data::game::runtime::structs::GameRuntime;
diff --git a/export/Cargo.toml b/export/Cargo.toml
index 5ddc6ca..790606c 100644
--- a/export/Cargo.toml
+++ b/export/Cargo.toml
@@ -6,5 +6,6 @@ workspace = "../../NoGamepads"
edition = "2024"
[dependencies]
+nogamepads = { path = "../../NoGamepads" }
serde = { version = "1.0.219", features = ["derive"] }
toml = "0.7.8"
\ No newline at end of file
diff --git a/export/src/bin/export_project.rs b/export/src/bin/export_project.rs
index 95b3fbe..9cdf412 100644
--- a/export/src/bin/export_project.rs
+++ b/export/src/bin/export_project.rs
@@ -3,7 +3,8 @@ use std::path::PathBuf;
use serde::Deserialize;
use std::collections::HashMap;
-use std::fs;
+use std::{env, fs};
+use nogamepads::file_system_utils::open_in_explorer;
#[derive(Debug, Deserialize)]
pub struct Config {
@@ -24,7 +25,8 @@ pub struct ReleaseItem {
}
pub fn main() {
- let version = env!("PROJECT_VERSION");
+ let args: Vec