Files
Starlight_Lancher/packages/app-lib/src/api/instance/synced_options/mod.rs
T
AxTps b7c16594ce
Sync source to CNB / Sync Git ref (push) Has been cancelled
fix: 修复跨实例同步移植的首轮编译错误
- re-export 可见性:synced_options_path 改从 files 导入;SyncedOptionJoinResolution 改从 pending 导入

- bind 移动语义:18 处 .bind(x) 改为 .bind(&x)(metadata.instance.id / option_id / custom_id 等)

- storage.rs:SqliteRow 字段访问改为 row.get()

- modpack.rs:去掉 Axolotl 独有的 DownloadMeta/DownloadReason,改用本地 5 参数 fetch

- state/mod.rs:补齐第 2 处 State 初始化的新增字段
2026-10-04 08:13:40 +08:00

34 lines
1.4 KiB
Rust

mod command_history;
mod files;
pub(crate) mod game_options;
mod hotbars;
mod orchestration;
pub(in crate::api::instance) mod pending;
const COMMAND_HISTORY_FILE: &str = "command_history.txt";
const HOTBAR_FILE: &str = "hotbar.nbt";
pub use self::command_history::{get_command_history, set_command_history};
pub(super) use self::files::{
CheckpointStatus, begin_checkpoint, checkpoint, detach_link, ensure_link,
finish_checkpoint, finish_plain_checkpoint, instance_game_dir,
instance_is_running, instance_option_enabled, nbt_from_bytes, nbt_to_bytes,
option_can_apply_while_running, read_nbt_file, safe_instance_id,
sha1_bytes, sha1_file, sync_files_are_protected, synced_options_path,
};
pub(super) use self::orchestration::instance_option_supported;
pub use self::orchestration::{
GlobalSyncedOptions, SyncedOptionCapability, SyncedOptionJoinAction,
SyncedOptionJoinPreview, SyncedOptionsOverview, get_capabilities,
get_global_options, get_initialized_options,
get_instance_option_join_preview, get_overview, get_synced_options_folder,
reconcile_all, reconcile_changed_file, reconcile_instance,
set_global_option, set_instance_option,
};
pub(crate) use self::orchestration::{
monitor_persisted_processes, prepare_instance_update,
reconcile_instance_after_pack_update_with_state,
remove_generated_instance_files,
};
pub use self::pending::SyncedOptionJoinResolution;