mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-19 19:21:17 +10:00
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:
@ -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"
|
||||
|
||||
@ -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};
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user