Files
Starlight_Launcher/packages/app-lib/src/api/instance/synced_options/mod.rs
T
AxTps ed61a5942c
Sync source to CNB / Sync Git ref (push) Has been cancelled
feat: 跨实例同步移植 WIP 检查点(第1轮+2a+2b+synced_servers)
从 Axolotl 移植跨实例同步子系统,当前进度:

- 第1轮:synced_options/files.rs + mod.rs 骨架,state 层补齐 SyncedOption/InstanceSyncedOptions/CanonicalValue/GameOptionKind 等

- 2a:game_options 的 api_types/options_file/catalog(10文件)

- 2b:game_options 除 resource_pack_options/local_settings_editor 外的全部(settings_editor/write_shared_settings/fullscreen/launch_overrides/instance_support/read_instance_changes/pack_updates/source_selection + locales/5文件);State 补 synced_options_lock/game_locale_indexer/lock_synced_options

- synced_servers:6 文件全部搬入

- 35+20 处 sqlx::query! 宏改写为非宏 query+bind

已知未完成:synced_servers::operations 依赖 synced_options::instance_option_supported(属 orchestration,第5轮),当前编译不通。
2026-10-03 22:18:37 +08:00

14 lines
571 B
Rust

mod files;
mod game_options;
pub(in crate::api::instance) mod pending;
const COMMAND_HISTORY_FILE: &str = "command_history.txt";
const HOTBAR_FILE: &str = "hotbar.nbt";
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,
};