refactor: Convert some things from static to const and refactor into drop-consts

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-10-13 08:59:00 +11:00
parent ef9f8caa54
commit f0e46c4a46
22 changed files with 76 additions and 47 deletions

View File

@ -87,6 +87,7 @@ remote = { version = "0.1.0", path = "../remote" }
utils = { path = "../utils" }
games = { version = "0.1.0", path = "../games" }
download_manager = { version = "0.1.0", path = "../download_manager" }
drop-consts = { version = "0.1.0", path = "../drop-consts" }
[dependencies.dynfmt]
version = "0.1.5"

View File

@ -14,6 +14,7 @@ use std::{
use ::client::{app_status::AppStatus, autostart::sync_autostart_on_startup, user::User};
use ::download_manager::DownloadManagerWrapper;
use drop_consts::DATA_ROOT_DIR;
use ::games::{library::Game, scan::scan_install_dirs};
use ::process::ProcessManagerWrapper;
use ::remote::{
@ -26,7 +27,7 @@ use ::remote::{
utils::DROP_CLIENT_ASYNC,
};
use database::{
DB, GameDownloadStatus, borrow_db_checked, borrow_db_mut_checked, db::DATA_ROOT_DIR,
DB, GameDownloadStatus, borrow_db_checked, borrow_db_mut_checked,
interface::DatabaseImpls,
};
use log::{LevelFilter, debug, info, warn};

View File

@ -5,9 +5,10 @@ use std::{
};
use database::{
Settings, borrow_db_checked, borrow_db_mut_checked, db::DATA_ROOT_DIR, debug::SystemData,
Settings, borrow_db_checked, borrow_db_mut_checked, debug::SystemData,
};
use download_manager::error::DownloadManagerError;
use drop_consts::DATA_ROOT_DIR;
use games::scan::scan_install_dirs;
use log::error;
use serde_json::Value;