fix: 复用皮肤站逻辑并稳定玩家头像
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
This commit is contained in:
@ -551,6 +551,13 @@ pub async fn get_available_skins() -> crate::Result<Vec<Skin>> {
|
||||
Ok(available_skins)
|
||||
}
|
||||
|
||||
/// Gets the bundled skin catalogue without requiring a selected Minecraft
|
||||
/// credential. This is used by external account providers that manage their
|
||||
/// own player profiles while reusing the launcher's native skin picker.
|
||||
pub fn get_default_skins() -> Vec<Skin> {
|
||||
assets::DEFAULT_SKINS.iter().cloned().collect()
|
||||
}
|
||||
|
||||
/// Adds or updates a skin in the app database and equips it for the current profile.
|
||||
/// Bundled default skins are only persisted when they have an associated cape.
|
||||
#[tracing::instrument(skip(texture_blob))]
|
||||
|
||||
Reference in New Issue
Block a user