U6GAST4QSK5XN53QTNFR6ZKP65I5VUFTIH2AHB6EVKJTSWBKJDBQC
SHQ7QHLTVQ5KJYCB3ZPI5HEIRC56TMAEZT4OOKUGT22QVY4WCB3AC
QNAL26AOMT5LCCJW7JIV52HLKE4UD4PTNZAMMFYVVOFGQXL4BPBAC
2OEKDJGNRB26WDYNIPXLD3X5KFEXUQN2EACBXO6T4F5PPB3YL2TQC
O7LARFJLYA7QBV73LE6N3DWVVKHCE43LI6EMCD34AXYHP6M5PWDQC
N6XOUOHS2X4M2BREDJXHRGICO4RFPNRS7OOYYQKNGUNQ5MK6LK7AC
CJ3W6DCERC3FVMB7FJOA2V5MTAHHORYOEJB3J5HFJ5PFBVK2UXWQC
GIFNVLRQXQV3H7FHJLLBTNC3YSDCIZWEGFNDASF4E34O3ID4AA7QC
pub fn new() -> Result<Self> {
// let player = PlayerController::new()?;
let mut db = tf_db::Client::new("db")?;
pub fn new(db: &mut tf_db::Client) -> Result<Self> {
}
fn connect_to_db() -> Result<tf_db::Client> {
let dirs = directories::ProjectDirs::from("", "Azorlogh", "tunefire")
.expect("failed to get data directory");
std::fs::create_dir_all(dirs.data_dir())?;
let db_path = dirs.data_dir().join("db.sqlite");
Ok(tf_db::Client::new(db_path)?)
directories = "4.0.1"
name = "directories"
version = "4.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-sys"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi",
]
[[package]]