Sync source to CNB / Sync Git ref (push) Skipped
Rust checks / shear (push) Canceled after 0s
Axolotl desktop CI / guardrails (push) Canceled after 0s
Axolotl desktop CI / desktop (macos-latest) (push) Canceled after 0s
Axolotl desktop CI / desktop (ubuntu-latest) (push) Canceled after 0s
Axolotl desktop CI / desktop (windows-latest) (push) Canceled after 0s
Axolotl desktop CI / website (push) Canceled after 0s
Repository checks / typos (push) Canceled after 0s
Repository checks / tombi (push) Canceled after 0s
fix: Linux 系统安装时游戏目录默认回退到用户主目录
49 lines
1.3 KiB
Rust
49 lines
1.3 KiB
Rust
/*!
|
|
# Theseus
|
|
|
|
Theseus is a library which provides utilities for launching minecraft, creating Modrinth mod packs,
|
|
and launching Modrinth mod packs
|
|
*/
|
|
#![warn(unused_import_braces)]
|
|
#![deny(unused_must_use)]
|
|
#![recursion_limit = "256"]
|
|
|
|
#[macro_use]
|
|
mod util;
|
|
|
|
mod api;
|
|
pub mod brand;
|
|
mod error;
|
|
mod event;
|
|
pub mod install;
|
|
mod launcher;
|
|
mod logger;
|
|
pub mod mod_metadata;
|
|
mod state;
|
|
pub mod storage;
|
|
|
|
pub use api::*;
|
|
pub use error::*;
|
|
pub use event::{
|
|
EventState, LoadingBar, LoadingBarType, emit::emit_loading,
|
|
emit::emit_logshare_ai_event, emit::init_loading,
|
|
};
|
|
pub use logger::filter_log_contents;
|
|
pub use logger::start_logger;
|
|
pub use state::db::{
|
|
backup_current_app_db_for_update, beta_database_exists,
|
|
copy_database_between_channels, copy_release_database_to_beta,
|
|
current_app_database_path, default_update_channel,
|
|
};
|
|
pub use state::{DirectoryInfo, State};
|
|
pub use storage::*;
|
|
pub use util::fetch::build_proxied_client;
|
|
pub use util::file_lock::{LockingProcess, get_locking_processes};
|
|
pub use util::platform::{default_game_dir_root, is_process_elevated};
|
|
pub use util::proxy::{ProxyConfig, ProxyMode, ProxyTestResult};
|
|
pub use util::symlink::SymlinkCapability;
|
|
|
|
pub fn launcher_user_agent() -> String {
|
|
brand::user_agent(env!("CARGO_PKG_VERSION"), std::env::consts::OS)
|
|
}
|